import type { Metadata } from "next"; import Image from "next/image"; import Link from "next/link"; import type { ReactNode } from "react"; import "./globals.css"; import { ThemeProvider } from "./theme-provider"; import { ThemeToggle } from "./theme-toggle"; import { JobsIndicator } from "./components/JobsIndicator"; import { NavIcon } from "./components/ui"; export const metadata: Metadata = { title: "StripStream Backoffice", description: "Backoffice administration for StripStream Librarian" }; type NavItem = { href: "/" | "/books" | "/libraries" | "/jobs" | "/tokens"; label: string; icon: "dashboard" | "books" | "libraries" | "jobs" | "tokens"; }; const navItems: NavItem[] = [ { href: "/", label: "Dashboard", icon: "dashboard" }, { href: "/books", label: "Books", icon: "books" }, { href: "/libraries", label: "Libraries", icon: "libraries" }, { href: "/jobs", label: "Jobs", icon: "jobs" }, { href: "/tokens", label: "Tokens", icon: "tokens" }, ]; export default function RootLayout({ children }: { children: ReactNode }) { return ( {/* Header avec effet glassmorphism */}
{/* Main Content */}
{children}
); } // Navigation Link Component function NavLink({ href, children }: { href: NavItem["href"]; children: React.ReactNode }) { return ( {children} ); }