mirror of
https://gitlab.massbug.com/massbug/judge4c.git
synced 2025-07-04 15:32:09 +00:00
37 lines
990 B
TypeScript
37 lines
990 B
TypeScript
import "@/app/globals.css";
|
|
import { cn } from "@/lib/utils";
|
|
import type { Metadata } from "next";
|
|
import { Inter } from "next/font/google";
|
|
import { QueryProvider } from "@/components/query-provider";
|
|
import { ThemeProvider } from "@/components/theme-provider";
|
|
|
|
const inter = Inter({ subsets: ["latin"] });
|
|
|
|
export const metadata: Metadata = {
|
|
title: "Create Next App",
|
|
description: "Generated by create next app",
|
|
};
|
|
|
|
interface RootLayoutProps {
|
|
children: React.ReactNode;
|
|
}
|
|
|
|
export default function RootLayout({ children }: Readonly<RootLayoutProps>) {
|
|
return (
|
|
<html lang="en" suppressHydrationWarning>
|
|
<body className={cn(inter.className, "antialiased min-h-screen")}>
|
|
<QueryProvider>
|
|
<ThemeProvider
|
|
attribute="class"
|
|
defaultTheme="system"
|
|
enableSystem
|
|
disableTransitionOnChange
|
|
>
|
|
{children}
|
|
</ThemeProvider>
|
|
</QueryProvider>
|
|
</body>
|
|
</html>
|
|
);
|
|
}
|