From 4cae14b9f86609b8c1f74d97a033e7091af49cb4 Mon Sep 17 00:00:00 2001 From: Armand Philippot Date: Mon, 13 Dec 2021 12:06:06 +0100 Subject: chore: change app to use a layout I can now insert header/footer on each pages. --- src/components/Layouts/Layout.tsx | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 src/components/Layouts/Layout.tsx (limited to 'src/components/Layouts') diff --git a/src/components/Layouts/Layout.tsx b/src/components/Layouts/Layout.tsx new file mode 100644 index 0000000..4270a17 --- /dev/null +++ b/src/components/Layouts/Layout.tsx @@ -0,0 +1,16 @@ +import { FunctionComponent } from 'react'; +import Footer from '@components/Footer/Footer'; +import Header from '@components/Header/Header'; +import Main from '@components/Main/Main'; + +const Layout: FunctionComponent = ({ children }) => { + return ( + <> +
+
{children}
+