trello_fake/app/layout.tsx

48 lines
1.2 KiB
TypeScript

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";
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",
};
export default function RootLayout({
children,
}: Readonly<{
children: React.ReactNode;
}>) {
return (
<html lang="es" suppressHydrationWarning>
<body className={`${geistSans.variable} ${geistMono.variable} antialiased`}>
<ThemeProvider
attribute="class"
defaultTheme="system"
enableSystem
disableTransitionOnChange
>
<SettingsProvider>
<AuthProvider>
<MainLayout>{children}</MainLayout>
</AuthProvider>
</SettingsProvider>
</ThemeProvider>
</body>
</html>
);
}