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