monaco-editor-lsp-next/src/app/layout.tsx

36 lines
923 B
TypeScript
Raw Normal View History

import "./globals.css";
2025-02-19 01:00:15 +00:00
import type { Metadata } from "next";
import { ModeToggle } from "@/components/mode-toggle";
import { ThemeProvider } from "@/components/theme-provider";
2025-02-19 01:00:15 +00:00
export const metadata: Metadata = {
title: "Create Next App",
description: "Generated by create next app",
};
export default function RootLayout({
children,
}: Readonly<{
children: React.ReactNode;
}>) {
return (
<html lang="en" suppressHydrationWarning>
<body className="h-screen flex flex-col antialiased">
<ThemeProvider
attribute="class"
defaultTheme="system"
enableSystem
disableTransitionOnChange
>
<header className="h-14 flex items-center justify-end px-8 border-b">
<ModeToggle />
</header>
<main className="flex-1">
{children}
</main>
</ThemeProvider>
2025-02-19 01:00:15 +00:00
</body>
</html>
);
}