2021-12-20 04:06:30 +00:00
|
|
|
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} />
|
2021-12-31 19:31:41 +00:00
|
|
|
|
2021-12-20 04:06:30 +00:00
|
|
|
<div
|
|
|
|
className={clsx(
|
2022-01-12 17:57:35 +00:00
|
|
|
'w-full px-2 pb-8 mx-auto',
|
2022-01-10 16:48:13 +00:00
|
|
|
wide ? 'max-w-6xl' : 'max-w-4xl'
|
2021-12-20 04:06:30 +00:00
|
|
|
)}
|
|
|
|
>
|
|
|
|
{children}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
)
|
|
|
|
}
|