layout.tsx43 lines, 1.1 KB
| 1 | import type { Metadata } from "next"; |
| 2 | import { Geist, Geist_Mono } from "next/font/google"; |
| 3 | import "./globals.css"; |
| 4 | import { ToastProvider } from "@/components/providers/toast-provider"; |
| 5 | import { AuthProvider } from "@/components/providers/auth-provider"; |
| 6 | import { Header } from "@/components/layout/header"; |
| 7 | import { ThemeProvider } from "@/components/providers/theme-provider"; |
| 8 | |
| 9 | const geistSans = Geist({ |
| 10 | variable: "--font-geist-sans", |
| 11 | subsets: ["latin"], |
| 12 | }); |
| 13 | |
| 14 | const geistMono = Geist_Mono({ |
| 15 | variable: "--font-geist-mono", |
| 16 | subsets: ["latin"], |
| 17 | }); |
| 18 | |
| 19 | export const metadata: Metadata = { |
| 20 | title: "Create Next App", |
| 21 | description: "Generated by create next app", |
| 22 | }; |
| 23 | |
| 24 | export default function RootLayout({ |
| 25 | children, |
| 26 | }: Readonly<{ |
| 27 | children: React.ReactNode; |
| 28 | }>) { |
| 29 | return ( |
| 30 | <html lang="en"> |
| 31 | <body |
| 32 | className={`${geistSans.variable} ${geistMono.variable} antialiased`} |
| 33 | > |
| 34 | <ThemeProvider> |
| 35 | <AuthProvider> |
| 36 | <ToastProvider /> |
| 37 | {children} |
| 38 | </AuthProvider> |
| 39 | </ThemeProvider> |
| 40 | </body> |
| 41 | </html> |
| 42 | ); |
| 43 | } |