36 lines
939 B
TypeScript
36 lines
939 B
TypeScript
import type { Metadata } from 'next';
|
|
import { cn } from '@/lib/utils';
|
|
import './globals.css';
|
|
import { ThemeProvider } from './ThemeProvider';
|
|
|
|
export const metadata: Metadata = {
|
|
title: 'Create Next App',
|
|
description: 'Generated by create next app',
|
|
};
|
|
|
|
export default function RootLayout({
|
|
children,
|
|
}: Readonly<{
|
|
children: React.ReactNode;
|
|
}>) {
|
|
return (
|
|
<html lang="en" suppressHydrationWarning>
|
|
<body
|
|
suppressHydrationWarning
|
|
className={cn(
|
|
'min-h-screen bg-background font-sans antialiased'
|
|
)}
|
|
>
|
|
<ThemeProvider
|
|
attribute="class"
|
|
defaultTheme="dark"
|
|
enableSystem
|
|
disableTransitionOnChange
|
|
>
|
|
{children}
|
|
</ThemeProvider>
|
|
</body>
|
|
</html>
|
|
);
|
|
}
|