judge4c/src/app/layout.tsx

31 lines
800 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" suppressHydrationWarning>
<body className="flex min-h-screen antialiased">
<ThemeProvider
attribute="class"
defaultTheme="system"
enableSystem
disableTransitionOnChange
>
<div className="w-full">{children}</div>
</ThemeProvider>
</body>
</html>
);
}