Merge pull request 'create BaseLayout component and create page layout schema' (#31) from Create-single-column-layout-schema into develop

Reviewed-on: http://85.143.176.51:3000/free-land/front-end/pulls/31
This commit is contained in:
Denis Gorbunov 2022-07-29 06:35:18 +00:00
commit cdd842a734

View File

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