svrjs-nextjs-website/app/(root)/layout.tsx

17 lines
341 B
TypeScript
Raw Normal View History

2024-06-20 15:38:05 +02:00
import Footer from "@/components/shared/Footer";
import Navbar from "@/components/shared/Navbar";
export default function PageLayout({
children,
}: {
children: React.ReactNode;
}) {
return (
<main className="flex flex-col min-h-screen">
<Navbar />
<div className="flex-grow flex-1">{children}</div>
<Footer />
</main>
);
}