mirror of
https://github.com/massbug/judge4c.git
synced 2025-05-18 15:26:33 +00:00
32 lines
837 B
TypeScript
32 lines
837 B
TypeScript
import "./globals.css";
|
|
import type { Metadata } from "next";
|
|
import { ThemeProvider } from "@/components/theme-provider";
|
|
|
|
export const metadata: Metadata = {
|
|
title: "monaco-editor-lsp-next",
|
|
description: "A Next.js integration of Monaco Editor with LSP support, free from SSR issues",
|
|
};
|
|
|
|
interface RootLayoutProps {
|
|
children: React.ReactNode;
|
|
}
|
|
|
|
export default function RootLayout({ children }: RootLayoutProps) {
|
|
return (
|
|
<html lang="en" className="h-full" suppressHydrationWarning>
|
|
<body className="flex min-h-full antialiased">
|
|
<ThemeProvider
|
|
attribute="class"
|
|
defaultTheme="system"
|
|
enableSystem
|
|
disableTransitionOnChange
|
|
>
|
|
<div className="w-full">
|
|
{children}
|
|
</div>
|
|
</ThemeProvider>
|
|
</body>
|
|
</html>
|
|
);
|
|
}
|