Wrap layout in SidebarProvider, restructure page into left sidebar navigation + right SidebarInset content area. Add use-mobile hook via shadcn for responsive behavior. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
39 lines
923 B
TypeScript
39 lines
923 B
TypeScript
import type { Metadata } from "next";
|
|
import { Geist, Geist_Mono, Inter } from "next/font/google";
|
|
import "@multica/ui/globals.css";
|
|
import { SidebarProvider } from "@multica/ui/components/ui/sidebar";
|
|
|
|
const inter = Inter({subsets:['latin'],variable:'--font-sans'});
|
|
|
|
const geistSans = Geist({
|
|
variable: "--font-geist-sans",
|
|
subsets: ["latin"],
|
|
});
|
|
|
|
const geistMono = Geist_Mono({
|
|
variable: "--font-geist-mono",
|
|
subsets: ["latin"],
|
|
});
|
|
|
|
export const metadata: Metadata = {
|
|
title: "Create Next App",
|
|
description: "Generated by create next app",
|
|
};
|
|
|
|
export default function RootLayout({
|
|
children,
|
|
}: Readonly<{
|
|
children: React.ReactNode;
|
|
}>) {
|
|
return (
|
|
<html lang="en" className={inter.variable}>
|
|
<body
|
|
className={`${geistSans.variable} ${geistMono.variable} antialiased`}
|
|
>
|
|
<SidebarProvider>
|
|
{children}
|
|
</SidebarProvider>
|
|
</body>
|
|
</html>
|
|
);
|
|
}
|