import clsx from 'clsx' import { BottomNavBar } from './nav/nav-bar' import Sidebar from './nav/sidebar' import { Toaster } from 'react-hot-toast' 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 return ( <>
{children} {/* If right sidebar is hidden, place its content at the bottom of the page. */}
{rightSidebar}
) } const visuallyHiddenStyle = { clip: 'rect(0 0 0 0)', clipPath: 'inset(50%)', height: 1, margin: -1, overflow: 'hidden', padding: 0, position: 'absolute', width: 1, whiteSpace: 'nowrap', } as const