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:
commit
cdd842a734
28
src/components/BaseLayout.tsx
Normal file
28
src/components/BaseLayout.tsx
Normal 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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user