trello_fake/app/layout.tsx

48 lines
1.2 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 { ThemeProvider } from "@/components/theme-provider";
import { SettingsProvider } from "@/components/settings";
import { AuthProvider } from "@/hooks/use-auth";
import { MainLayout } from "@/components/layouts/main-layout";
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",
description: "Panel de gestión de proyectos de Dolibarr",
2025-12-05 19:26:44 +00:00
};
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
>
<SettingsProvider>
<AuthProvider>
<MainLayout>{children}</MainLayout>
</AuthProvider>
</SettingsProvider>
2026-01-28 10:44:49 +00:00
</ThemeProvider>
2025-12-05 19:26:44 +00:00
</body>
</html>
);
}