Create app-wide layout with Header

This commit is contained in:
Justin Edmund 2022-01-31 20:47:21 -08:00
parent ade50a04e5
commit fcd544536d

View file

@ -0,0 +1,17 @@
import type { ReactElement } from 'react'
import Header from '~components/Header'
interface Props {
children: ReactElement
}
const Layout = ({children}: Props) => {
return (
<>
<Header />
<main>{children}</main>
</>
)
}
export default Layout