feat: layout component

This commit is contained in:
2023-12-30 15:19:19 +01:00
parent 0ccc447e40
commit bb59863441
13 changed files with 132 additions and 54 deletions

View File

@@ -0,0 +1,16 @@
import { ReactNode } from 'react'
import { Header, HeaderProps } from '@/components'
import s from './layout.module.scss'
export type LayoutProps = { children: ReactNode } & HeaderProps
export const Layout = ({ children, ...headerProps }: LayoutProps) => {
return (
<div className={s.layout}>
<Header {...headerProps} />
<div className={s.content}>{children}</div>
</div>
)
}