mocksaml/components/Layout.tsx

18 lines
370 B
TypeScript
Raw Normal View History

2022-02-24 03:28:53 +00:00
import type { ReactNode } from 'react';
import Footer from './Footer';
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>
<main className='h-[calc(100%_-_76px)] overflow-auto'>{children}</main>
<Footer></Footer>
2022-02-17 06:05:50 +00:00
</>
2022-02-18 08:56:42 +00:00
);
}