57 lines
1.5 KiB
TypeScript
57 lines
1.5 KiB
TypeScript
import type { Metadata } from "next";
|
|
import { Geist, Geist_Mono } from "next/font/google";
|
|
import "./globals.css";
|
|
import PrelineScriptWrapper from './components/PrelineScriptWrapper';
|
|
import { Providers } from './components/Providers';
|
|
import Sidebar from './components/Sidebar';
|
|
import ThemeProvider from "@/theme/theme-provider";
|
|
import Script from "next/script";
|
|
import NotificationCenter from './components/NotificationCenter'
|
|
import Navbar from "./components/Navbar";
|
|
import WebSocketManager from "./components/WebSocketManager";
|
|
|
|
const geistSans = Geist({
|
|
variable: "--font-geist-sans",
|
|
subsets: ["latin"],
|
|
});
|
|
|
|
const geistMono = Geist_Mono({
|
|
variable: "--font-geist-mono",
|
|
subsets: ["latin"],
|
|
});
|
|
|
|
export const metadata = {
|
|
title: 'Meine App',
|
|
description: 'Steam Auth Dashboard',
|
|
}
|
|
|
|
export default function RootLayout({
|
|
children,
|
|
}: Readonly<{
|
|
children: React.ReactNode;
|
|
}>) {
|
|
return (
|
|
<html lang="en" suppressHydrationWarning>
|
|
<body className={`${geistSans.variable} ${geistMono.variable} antialiased bg-white dark:bg-black`}>
|
|
<ThemeProvider
|
|
attribute="class"
|
|
defaultTheme="system"
|
|
enableSystem
|
|
disableTransitionOnChange
|
|
>
|
|
<Providers>
|
|
<WebSocketManager />
|
|
{/* Sidebar und Content direkt nebeneinander */}
|
|
<Sidebar>
|
|
{children}
|
|
</Sidebar>
|
|
<NotificationCenter />
|
|
</Providers>
|
|
</ThemeProvider>
|
|
<PrelineScriptWrapper />
|
|
</body>
|
|
</html>
|
|
);
|
|
}
|
|
|