import { useGlobalStore } from '@library/state/GlobalState' export default function HasSidebar({ children }) { const ready = useGlobalStore((state) => state.ready) return ( <> {ready ? children[1] : null} > ) }