Files
vscode-front-matter/docs/components/Page/Layout.tsx
2021-08-30 15:13:06 +02:00

21 lines
484 B
TypeScript

import * as React from 'react';
import { Navigation } from '../Navigation';
import { Footer } from './Footer';
export interface ILayoutProps {}
export const Layout: React.FunctionComponent<ILayoutProps> = (props: React.PropsWithChildren<ILayoutProps>) => {
return (
<div className={`flex flex-col h-screen`}>
<header>
<Navigation />
</header>
<main className={`flex-grow`}>
{props.children}
</main>
<Footer />
</div>
);
};