judge4c_backup_new/src/app/layout.tsx

37 lines
990 B
TypeScript
Raw Normal View History

import "@/app/globals.css";
import { cn } from "@/lib/utils";
2025-01-28 14:08:33 +00:00
import type { Metadata } from "next";
import { Inter } from "next/font/google";
import { QueryProvider } from "@/components/query-provider";
import { ThemeProvider } from "@/components/theme-provider";
2025-01-28 14:08:33 +00:00
const inter = Inter({ subsets: ["latin"] });
2025-01-28 14:08:33 +00:00
export const metadata: Metadata = {
title: "Create Next App",
description: "Generated by create next app",
};
interface RootLayoutProps {
2025-01-28 14:08:33 +00:00
children: React.ReactNode;
}
export default function RootLayout({ children }: Readonly<RootLayoutProps>) {
2025-01-28 14:08:33 +00:00
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>
2025-01-28 14:08:33 +00:00
</body>
</html>
);
}