import Main from '@/web/components/New/Main' import Player from '@/web/components/New/Player' import Sidebar from '@/web/components/New/Sidebar' import Topbar from '@/web/components/New/Topbar' import { css, cx } from '@emotion/css' import { useMemo } from 'react' import { player } from '@/web/store' import { useSnapshot } from 'valtio' const Layout = () => { const playerSnapshot = useSnapshot(player) const showPlayer = useMemo(() => !!playerSnapshot.track, [playerSnapshot]) return (
{showPlayer && }
) } export default Layout