gbclient/app/layout.tsx

22 lines
663 B
TypeScript
Raw Normal View History

import { ThemeProvider } from '@/components/ui/theme-provider';
import { Nav } from './client-nav';
import './globals.css';
import './globals.css' // This path is correct if the file is in your src/app directory
import { ReactNode } from 'react'
import ModeToggle from '@/components/ui/mode-toggle';
export default function RootLayout({ children }: { children: ReactNode }) {
return (
<html lang="en">
<body className='flex flex-col min-h-screen'>
<Nav />
<ThemeProvider attribute="class" defaultTheme="system" enableSystem>
<ModeToggle />
{children}
</ThemeProvider>
</body>
</html>
)
}