Files
carmanagement/apps/admin/src/app/layout.tsx
T
2026-05-09 20:01:51 -04:00

25 lines
1010 B
TypeScript

import type { Metadata } from 'next'
import { AdminI18nProvider } from '@/components/I18nProvider'
import './globals.css'
export const metadata: Metadata = {
title: 'RentalDriveGo Admin',
description: 'Platform administration for RentalDriveGo.',
}
export default function RootLayout({ children }: { children: React.ReactNode }) {
return (
<html lang="en" className="dark" suppressHydrationWarning>
<head>
<script
dangerouslySetInnerHTML={{
__html:
"(function(){try{var theme=localStorage.getItem('admin-theme');if(theme!=='light'&&theme!=='dark'){theme=window.matchMedia('(prefers-color-scheme: dark)').matches?'dark':'light'}document.documentElement.classList.remove('light','dark');document.documentElement.classList.add(theme);document.documentElement.style.colorScheme=theme}catch(e){}})();",
}}
/>
</head>
<body suppressHydrationWarning><AdminI18nProvider>{children}</AdminI18nProvider></body>
</html>
)
}