2025-02-19 13:20:25 +00:00
|
|
|
import "./globals.css";
|
2025-02-19 01:00:15 +00:00
|
|
|
import type { Metadata } from "next";
|
2025-02-19 13:20:25 +00:00
|
|
|
import { ThemeProvider } from "@/components/theme-provider";
|
2025-02-19 01:00:15 +00:00
|
|
|
|
|
|
|
export const metadata: Metadata = {
|
2025-02-21 11:49:56 +00:00
|
|
|
title: "monaco-editor-lsp-next",
|
|
|
|
description: "A Next.js integration of Monaco Editor with LSP support, free from SSR issues",
|
2025-02-19 01:00:15 +00:00
|
|
|
};
|
|
|
|
|
2025-02-21 11:49:56 +00:00
|
|
|
interface RootLayoutProps {
|
2025-02-19 01:00:15 +00:00
|
|
|
children: React.ReactNode;
|
2025-02-21 11:49:56 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
export default function RootLayout({ children }: RootLayoutProps) {
|
2025-02-19 01:00:15 +00:00
|
|
|
return (
|
2025-02-23 12:31:28 +00:00
|
|
|
<html lang="en" className="h-full" suppressHydrationWarning>
|
|
|
|
<body className="flex min-h-full antialiased">
|
2025-02-19 13:20:25 +00:00
|
|
|
<ThemeProvider
|
|
|
|
attribute="class"
|
2025-02-19 14:40:27 +00:00
|
|
|
defaultTheme="system"
|
2025-02-19 13:20:25 +00:00
|
|
|
enableSystem
|
|
|
|
disableTransitionOnChange
|
|
|
|
>
|
2025-02-23 12:31:28 +00:00
|
|
|
<div className="w-full">
|
2025-02-20 06:43:56 +00:00
|
|
|
{children}
|
2025-02-21 11:49:56 +00:00
|
|
|
</div>
|
2025-02-19 13:20:25 +00:00
|
|
|
</ThemeProvider>
|
2025-02-19 01:00:15 +00:00
|
|
|
</body>
|
|
|
|
</html>
|
|
|
|
);
|
|
|
|
}
|