import type { FC, ReactNode } from "react";
import Footer from "./Footer";
import Header from "./Header";

const Layout: FC<{ children: ReactNode; showHeader?: boolean }> = ({
	children,
	showHeader = true,
}) => {
	return (
		<>
			{showHeader && <Header />}
			<main className="min-h-screen">{children}</main>
			<Footer />
		</>
	);
};

export default Layout;
