import Player from '@/web/components/PlayerMobile' import { css, cx } from '@emotion/css' import { useMemo } from 'react' import player from '@/web/states/player' import { useSnapshot } from 'valtio' import Router from '@/web/components/Router' import MenuBar from './MenuBar' import Topbar from './Topbar/TopbarMobile' import { isIOS, isIosPwa, isPWA, isSafari } from '@/web/utils/common' import Login from './Login' import { useLocation } from 'react-router-dom' import PlayingNext from './PlayingNextMobile' const LayoutMobile = () => { const playerSnapshot = useSnapshot(player) const showPlayer = !!playerSnapshot.track const location = useLocation() return (
{location.pathname === '/' && }
{showPlayer && (
)}
{/* Notch background */} {isIosPwa && (
)}
) } export default LayoutMobile