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

17 lines
378 B
TypeScript
Raw Normal View History

2024-06-20 17:02:11 +02:00
import MobileNav from "./_components/Mobilenav";
import Sidebar from "./_components/Sidebar";
2024-06-20 15:38:05 +02:00
export default function PageLayout({
2024-06-20 17:02:11 +02:00
children,
2024-06-20 15:38:05 +02:00
}: {
2024-06-20 17:02:11 +02:00
children: React.ReactNode;
2024-06-20 15:38:05 +02:00
}) {
2024-06-20 17:02:11 +02:00
return (
<main className="flex flex-col min-h-screen root">
<Sidebar />
<MobileNav />
<div className="flex-grow flex-1 root-container">{children}</div>
</main>
);
2024-06-20 15:38:05 +02:00
}