Files
Frontend/src/app/layout.tsx

30 lines
779 B
TypeScript
Raw Normal View History

2024-04-14 18:46:37 +01:00
import Container from "@/components/container";
import ThemeProvider from "@/components/theme-provider";
2024-04-14 19:55:07 +01:00
import { ToastContainer } from "react-toastify";
2024-04-14 17:45:04 +01:00
2024-04-14 19:55:07 +01:00
import { Inter } from "next/font/google";
import "react-toastify/dist/ReactToastify.css";
2024-04-14 18:46:37 +01:00
import "./globals.css";
2024-04-14 17:45:04 +01:00
const inter = Inter({ subsets: ["latin"] });
export default function RootLayout({
children,
}: Readonly<{
children: React.ReactNode;
}>) {
return (
2024-04-14 18:46:37 +01:00
<>
<html className={inter.className} lang="en" suppressHydrationWarning>
<head />
<body>
<ThemeProvider attribute="class" defaultTheme="dark" enableSystem>
2024-04-14 19:55:07 +01:00
<ToastContainer theme="dark" />
2024-04-14 18:46:37 +01:00
<Container>{children}</Container>
</ThemeProvider>
</body>
</html>
</>
2024-04-14 17:45:04 +01:00
);
}