34 lines
990 B
TypeScript
34 lines
990 B
TypeScript
import type React from "react"
|
|
import type { Metadata } from "next"
|
|
import { GeistSans } from "geist/font/sans"
|
|
import { GeistMono } from "geist/font/mono"
|
|
import { Analytics } from "@vercel/analytics/next"
|
|
import "./globals.css"
|
|
import { Suspense } from "react"
|
|
import { ThemeProvider } from "@/components/theme-provider"
|
|
|
|
export const metadata: Metadata = {
|
|
title: "Stock Market Dashboard",
|
|
description: "Professional stock market data and analysis platform",
|
|
generator: "v0.app",
|
|
}
|
|
|
|
export default function RootLayout({
|
|
children,
|
|
}: Readonly<{
|
|
children: React.ReactNode
|
|
}>) {
|
|
return (
|
|
<html lang="en" suppressHydrationWarning>
|
|
<body className={`font-sans ${GeistSans.variable} ${GeistMono.variable} antialiased`}>
|
|
<ThemeProvider attribute="class" defaultTheme="light" enableSystem disableTransitionOnChange>
|
|
<Suspense>
|
|
{children}
|
|
<Analytics />
|
|
</Suspense>
|
|
</ThemeProvider>
|
|
</body>
|
|
</html>
|
|
)
|
|
}
|