import type { Metadata, Viewport } from "next"; import "@fontsource-variable/geist"; import "@fontsource-variable/geist-mono"; import "./globals.css"; import { ThemeProvider } from "./context/ThemeContext"; import { getThemeConfig } from "@/config"; export const viewport: Viewport = { width: "device-width", initialScale: 1, viewportFit: "cover", }; export const metadata: Metadata = (() => { const theme = getThemeConfig(); return { title: theme.meta.title, description: theme.meta.description, }; })(); function ThemeScript() { return ( ); } export default function RootLayout({ children, }: Readonly<{ children: React.ReactNode; }>) { return (