mirror of
https://github.com/massbug/judge4c.git
synced 2025-12-14 12:43:33 +00:00
36 lines
923 B
TypeScript
36 lines
923 B
TypeScript
import "./globals.css";
|
|
import type { Metadata } from "next";
|
|
import { ModeToggle } from "@/components/mode-toggle";
|
|
import { ThemeProvider } from "@/components/theme-provider";
|
|
|
|
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 className="h-screen flex flex-col antialiased">
|
|
<ThemeProvider
|
|
attribute="class"
|
|
defaultTheme="system"
|
|
enableSystem
|
|
disableTransitionOnChange
|
|
>
|
|
<header className="h-14 flex items-center justify-end px-8 border-b">
|
|
<ModeToggle />
|
|
</header>
|
|
<main className="flex-1">
|
|
{children}
|
|
</main>
|
|
</ThemeProvider>
|
|
</body>
|
|
</html>
|
|
);
|
|
}
|