trello_fake/app/layout.tsx

56 lines
1.4 KiB
TypeScript
Raw Normal View History

2025-12-05 19:26:44 +00:00
import type { Metadata } from "next";
import { Geist, Geist_Mono } from "next/font/google";
import "./globals.css";
import { SidebarProvider, SidebarTrigger, SidebarInset } from "@/components/ui/sidebar"
2025-12-11 11:54:57 +00:00
import { AppSidebar } from "@/components/app-sidebar"
2026-01-28 10:44:49 +00:00
import { ThemeProvider } from "@/components/theme-provider"
2026-02-06 19:06:25 +00:00
import { Toaster } from "sonner"
2025-12-05 19:26:44 +00:00
const geistSans = Geist({
variable: "--font-geist-sans",
subsets: ["latin"],
});
const geistMono = Geist_Mono({
variable: "--font-geist-mono",
subsets: ["latin"],
});
export const metadata: Metadata = {
title: "Dolibarr proyectos",
2025-12-05 19:26:44 +00:00
description: "Generated by create next app",
};
export default function RootLayout({
children,
}: Readonly<{
children: React.ReactNode;
}>) {
return (
2026-01-28 10:44:49 +00:00
<html lang="es" suppressHydrationWarning>
<body className={`${geistSans.variable} ${geistMono.variable} antialiased`}>
2026-01-28 10:44:49 +00:00
<ThemeProvider
attribute="class"
defaultTheme="system"
enableSystem
disableTransitionOnChange
>
<SidebarProvider>
<AppSidebar />
2026-01-28 10:44:49 +00:00
<SidebarInset>
<main>
<SidebarTrigger />
{children}
</main>
</SidebarInset>
</SidebarProvider>
2026-02-06 19:06:25 +00:00
<Toaster richColors position="bottom-right" />
2026-01-28 10:44:49 +00:00
</ThemeProvider>
2025-12-05 19:26:44 +00:00
</body>
</html>
);
}