create BaseLayout component and create page layout schema

This commit is contained in:
filantrop 2022-07-27 19:32:37 +03:00
parent e643071725
commit d281f96a40

View File

@ -0,0 +1,27 @@
import React from "react";
type Props = {
header?: React.ReactElement,
children: React.ReactNode,
footer?: React.ReactElement,
}
function BaseLayout({header, footer, children}: Props) {
return (
<>
<header>
{header}
</header>
<main>
{children}
</main>
<footer>
{footer}
</footer>
</>
);
}
export default BaseLayout;