Create app-wide layout with Header
This commit is contained in:
parent
ade50a04e5
commit
fcd544536d
1 changed files with 17 additions and 0 deletions
17
components/Layout/index.tsx
Normal file
17
components/Layout/index.tsx
Normal 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
|
||||||
Loading…
Reference in a new issue