layout.jsx 939 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. import { Geist, Geist_Mono } from "next/font/google";
  2. import "./globals.css";
  3. import { ThemeProvider } from "@/components/ui/theme-provider";
  4. import { Toaster } from "@/components/ui/sonner";
  5. const geistSans = Geist({
  6. variable: "--font-geist-sans",
  7. subsets: ["latin"],
  8. });
  9. const geistMono = Geist_Mono({
  10. variable: "--font-geist-mono",
  11. subsets: ["latin"],
  12. });
  13. export const metadata = {
  14. title: "RHL Lieferscheine",
  15. description: "Internal delivery note browser",
  16. };
  17. export default function RootLayout({ children }) {
  18. return (
  19. <html lang="de" suppressHydrationWarning>
  20. <body
  21. className={`${geistSans.variable} ${geistMono.variable} min-h-screen bg-background text-foreground antialiased`}
  22. >
  23. <ThemeProvider
  24. attribute="class"
  25. defaultTheme="system"
  26. enableSystem
  27. disableTransitionOnChange
  28. >
  29. {children}
  30. <Toaster position="bottom-center" />
  31. </ThemeProvider>
  32. </body>
  33. </html>
  34. );
  35. }