import type { Metadata } from 'next'; import type { ReactNode } from 'react'; import { ThemeProvider } from '@/providers/theme-provider'; import './globals.css'; export const metadata: Metadata = { title: 'Mosaic', description: 'Mosaic Stack Dashboard', }; function themeScript(): string { return ` (function () { try { var theme = window.localStorage.getItem('mosaic-theme') || 'dark'; document.documentElement.setAttribute('data-theme', theme === 'light' ? 'light' : 'dark'); } catch (error) { document.documentElement.setAttribute('data-theme', 'dark'); } })(); `; } export default function RootLayout({ children }: { children: ReactNode }): React.ReactElement { return (