manifold/web/components/page.tsx

21 lines
397 B
TypeScript
Raw Normal View History

import clsx from 'clsx'
import { NavBar } from './nav-bar'
export function Page(props: { wide?: boolean; children?: any }) {
const { wide, children } = props
return (
<div>
2021-12-20 04:37:11 +00:00
<NavBar wide={wide} />
<div
className={clsx(
2021-12-20 04:37:11 +00:00
'w-full px-4 pb-8 mx-auto',
wide ? 'max-w-7xl' : 'max-w-4xl'
)}
>
{children}
</div>
</div>
)
}