judge4c/src/app/layout.tsx

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>
);
}