manifold/web/components/page.tsx

28 lines
524 B
TypeScript
Raw Normal View History

import clsx from 'clsx'
import { NavBar } from './nav-bar'
export function Page(props: {
wide?: boolean
margin?: boolean
assertUser?: 'signed-in' | 'signed-out'
children?: any
}) {
const { wide, margin, assertUser, children } = props
return (
<div>
<NavBar wide={wide} assertUser={assertUser} />
2021-12-31 19:31:41 +00:00
<div
className={clsx(
'w-full mx-auto',
wide ? 'max-w-6xl' : 'max-w-4xl',
margin && 'px-4'
)}
>
{children}
</div>
</div>
)
}