import clsx from 'clsx' import { ReactNode } from 'react' import { BottomNavBar } from './nav/bottom-nav-bar' import Sidebar from './nav/sidebar' import { Toaster } from 'react-hot-toast' export function Page(props: { rightSidebar?: ReactNode className?: string rightSidebarClassName?: string children?: ReactNode logoSubheading?: string }) { const { children, rightSidebar, className, rightSidebarClassName, logoSubheading, } = props const bottomBarPadding = 'pb-[58px] lg:pb-0 ' return ( <>
{children} {/* If right sidebar is hidden, place its content at the bottom of the page. */}
{rightSidebar}
) }