mirror of
https://github.com/ershisan99/flashcards-example-project.git
synced 2025-12-18 05:09:23 +00:00
17 lines
404 B
TypeScript
17 lines
404 B
TypeScript
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>
|
|
)
|
|
}
|