shellphone.app/app/features/public-area/components/base-layout.tsx

21 lines
514 B
TypeScript
Raw Normal View History

2022-05-14 10:22:06 +00:00
import type { FunctionComponent, PropsWithChildren } from "react";
2021-08-29 21:28:42 +00:00
import Header from "./header";
2021-08-29 22:47:43 +00:00
import Footer from "./footer";
2021-08-29 21:28:42 +00:00
2022-05-14 10:22:06 +00:00
const BaseLayout: FunctionComponent<PropsWithChildren<{}>> = ({ children }) => (
2021-08-29 21:28:42 +00:00
<>
<section className="font-inter antialiased bg-white text-gray-900 tracking-tight">
<section className="flex flex-col min-h-screen overflow-hidden">
<Header />
<main className="flex-grow">{children}</main>
2021-08-29 22:47:43 +00:00
<Footer />
2021-08-29 21:28:42 +00:00
</section>
</section>
</>
);
export default BaseLayout;