import Link from "next/link"; import type { Metadata } from "next"; import { Geist, Geist_Mono } from "next/font/google"; import "./globals.css"; import { getServerSession } from "next-auth"; import { NextAuthSessionProvider } from "./_components/AuthSessionProvider"; import { options } from "./api/auth/[...nextauth]/auth"; import { ExitIcon, DiscordLogoIcon, InstagramLogoIcon, ReaderIcon, HomeIcon, PersonIcon, GearIcon, } from "@radix-ui/react-icons"; const geistSans = Geist({ variable: "--font-geist-sans", subsets: ["latin"], }); const geistMono = Geist_Mono({ variable: "--font-geist-mono", subsets: ["latin"], }); export const metadata: Metadata = { title: "Create Next App", description: "Generated by create next app", }; export default async function RootLayout({ children, }: Readonly<{ children: React.ReactNode; }>) { const session = await getServerSession(options); return (
{/* Card */}
{/* Top Navbar */}
{/* Hauptlayout: Sidebar + Content (nimmt Resthöhe ein) */}
{/* Linke Sidebar */} {/* Scrollbarer Content-Bereich */}
{children}
{/* Footer */}
); }