2022-02-24 03:28:53 +00:00
|
|
|
import type { ReactNode } from 'react';
|
|
|
|
|
import Header from './Header';
|
2022-02-17 06:05:50 +00:00
|
|
|
|
2022-02-18 08:56:42 +00:00
|
|
|
type LayoutProps = {
|
|
|
|
|
children: ReactNode;
|
|
|
|
|
};
|
2022-02-24 04:16:49 +00:00
|
|
|
|
2022-02-18 08:56:42 +00:00
|
|
|
export default function Layout({ children }: LayoutProps) {
|
2022-02-17 06:05:50 +00:00
|
|
|
return (
|
|
|
|
|
<>
|
2022-02-24 03:28:53 +00:00
|
|
|
<Header></Header>
|
2022-02-24 06:20:40 +00:00
|
|
|
<main className='h-[calc(100%_-_80px)] overflow-auto'>{children}</main>
|
2022-02-17 06:05:50 +00:00
|
|
|
</>
|
2022-02-18 08:56:42 +00:00
|
|
|
);
|
|
|
|
|
}
|