layout.tsx 927 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. import type { Metadata } from 'next'
  2. import { Geist, Geist_Mono } from 'next/font/google'
  3. import './globals.css'
  4. import Navigation from './components/Navigation'
  5. import { ThemeProvider } from './components/ThemeProvider'
  6. const geistSans = Geist({
  7. variable: '--font-geist-sans',
  8. subsets: ['latin'],
  9. })
  10. const geistMono = Geist_Mono({
  11. variable: '--font-geist-mono',
  12. subsets: ['latin'],
  13. })
  14. export const metadata: Metadata = {
  15. title: 'Byreal Table',
  16. description: 'Byreal Table - Top Positions Dashboard',
  17. }
  18. export default function RootLayout({
  19. children,
  20. }: Readonly<{
  21. children: React.ReactNode
  22. }>) {
  23. return (
  24. <html lang="en" suppressHydrationWarning>
  25. <head>
  26. <meta name="color-scheme" content="light dark" />
  27. </head>
  28. <body
  29. className={`${geistSans.variable} ${geistMono.variable} antialiased`}
  30. >
  31. <ThemeProvider>
  32. <Navigation />
  33. {children}
  34. </ThemeProvider>
  35. </body>
  36. </html>
  37. )
  38. }