{rightSidebar}
import clsx from 'clsx' import { useEffect } from 'react' import { BottomNavBar } from './nav/nav-bar' import Sidebar from './nav/sidebar' import { initPreviews } from 'link-summoner' export function Page(props: { margin?: boolean assertUser?: 'signed-in' | 'signed-out' rightSidebar?: React.ReactNode suspend?: boolean children?: any }) { const { margin, assertUser, children, rightSidebar, suspend } = props useEffect(() => { if (typeof document !== 'undefined') { // This seems to work... console.log(document) // But not this... initPreviews() } }, []) return ( <>