2025-03-30 14:48:57 +08:00
|
|
|
import './globals.css';
|
|
|
|
import { Inter } from 'next/font/google';
|
|
|
|
import { AuthProvider } from '@/context/auth-context';
|
|
|
|
import { Toaster } from 'sonner';
|
2025-03-31 14:44:10 +08:00
|
|
|
import { LayoutContent } from '@/components/layout-content';
|
2025-03-30 14:48:57 +08:00
|
|
|
|
|
|
|
const inter = Inter({ subsets: ['latin'] });
|
|
|
|
|
|
|
|
export default function RootLayout({
|
|
|
|
children,
|
|
|
|
}: {
|
|
|
|
children: React.ReactNode;
|
|
|
|
}) {
|
|
|
|
return (
|
2025-03-31 06:55:26 +08:00
|
|
|
<html lang="en" className="h-full">
|
2025-03-31 14:44:10 +08:00
|
|
|
<body className={`${inter.className} h-full`}>
|
2025-03-30 14:48:57 +08:00
|
|
|
<AuthProvider>
|
2025-03-31 14:44:10 +08:00
|
|
|
<LayoutContent>
|
|
|
|
{children}
|
|
|
|
</LayoutContent>
|
2025-03-30 14:48:57 +08:00
|
|
|
<Toaster position="top-right" />
|
|
|
|
</AuthProvider>
|
|
|
|
</body>
|
|
|
|
</html>
|
|
|
|
);
|
|
|
|
}
|