2024-08-23 20:54:13 +00:00
|
|
|
import type { Metadata } from "next";
|
|
|
|
|
import { Inter } from "next/font/google";
|
|
|
|
|
import "./globals.css";
|
2024-08-27 03:54:15 +00:00
|
|
|
import { ThemeProvider } from "next-themes";
|
2024-08-23 20:54:13 +00:00
|
|
|
|
|
|
|
|
const inter = Inter({ subsets: ["latin"] });
|
|
|
|
|
|
|
|
|
|
export const metadata: Metadata = {
|
2024-08-28 19:06:00 +00:00
|
|
|
title: "Sourcebot",
|
|
|
|
|
description: "Sourcebot",
|
2024-08-23 20:54:13 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
export default function RootLayout({
|
2024-08-27 03:54:15 +00:00
|
|
|
children,
|
2024-08-23 20:54:13 +00:00
|
|
|
}: Readonly<{
|
2024-08-27 03:54:15 +00:00
|
|
|
children: React.ReactNode;
|
2024-08-23 20:54:13 +00:00
|
|
|
}>) {
|
2024-08-27 03:54:15 +00:00
|
|
|
return (
|
|
|
|
|
<html
|
|
|
|
|
lang="en"
|
|
|
|
|
// @see : https://github.com/pacocoursey/next-themes?tab=readme-ov-file#with-app
|
|
|
|
|
suppressHydrationWarning
|
|
|
|
|
>
|
|
|
|
|
<body className={inter.className}>
|
|
|
|
|
<ThemeProvider
|
|
|
|
|
attribute="class"
|
|
|
|
|
defaultTheme="system"
|
|
|
|
|
enableSystem
|
|
|
|
|
disableTransitionOnChange
|
|
|
|
|
>
|
|
|
|
|
{children}
|
|
|
|
|
</ThemeProvider>
|
|
|
|
|
</body>
|
|
|
|
|
</html>
|
|
|
|
|
);
|
2024-08-23 20:54:13 +00:00
|
|
|
}
|