import clsx from 'clsx' import { BottomNavBar } from './nav/nav-bar' import Sidebar from './nav/sidebar' export function Page(props: { margin?: boolean assertUser?: 'signed-in' | 'signed-out' rightSidebar?: React.ReactNode children?: any }) { const { margin, assertUser, children, rightSidebar } = props return (
{assertUser !== 'signed-out' && }
{children} {/* If right sidebar is hidden, place its content at the bottom of the page. */}
{rightSidebar}
) }