From d281f96a4007f1e2da152265073cac0899ba1e88 Mon Sep 17 00:00:00 2001 From: filantrop Date: Wed, 27 Jul 2022 19:32:37 +0300 Subject: [PATCH] create BaseLayout component and create page layout schema --- src/components/BaseLayout.tsx | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 src/components/BaseLayout.tsx diff --git a/src/components/BaseLayout.tsx b/src/components/BaseLayout.tsx new file mode 100644 index 0000000..90a23d1 --- /dev/null +++ b/src/components/BaseLayout.tsx @@ -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} +
+ +
+ {children} +
+ + + + ); + } + + export default BaseLayout; + \ No newline at end of file