mirror of
https://github.com/zoo-labs/zoo.git
synced 2026-11-10 22:32:34 +00:00
30 lines
543 B
TypeScript
30 lines
543 B
TypeScript
import { Box } from 'components/primitives'
|
|
import { FC, ReactNode } from 'react'
|
|
import Navbar from './navbar'
|
|
|
|
type Props = {
|
|
children: ReactNode
|
|
}
|
|
|
|
const Layout: FC<Props> = ({ children }) => {
|
|
return (
|
|
<>
|
|
<Box
|
|
css={{
|
|
background: '$neutralBg',
|
|
height: '100%',
|
|
minHeight: '100vh',
|
|
pt: 80,
|
|
}}
|
|
>
|
|
<Box css={{ maxWidth: 1920, mx: 'auto' }}>
|
|
<Navbar />
|
|
<main>{children}</main>
|
|
</Box>
|
|
</Box>
|
|
</>
|
|
)
|
|
}
|
|
|
|
export default Layout
|