"use client"; // Layout-Shell mit Navigation — SHL-01 Akzeptanzkriterium 1. // Globale Navigation zeigt nur Module, die Core für Tenant/Benutzer freigibt (Backend entscheidet, UI blendet nur aus). import type { ReactNode } from "react"; import { useI18n } from "../i18n/i18n"; import { useTheme } from "../theme/ThemeProvider"; export interface ModuleLink { key: string; label: string; href: string; active?: boolean; } export interface ShellProps { modules: ModuleLink[]; tenantLabel: string; children: ReactNode; } export function Shell({ modules, tenantLabel, children }: ShellProps) { const { scheme, toggle } = useTheme(); const { t } = useI18n(); return (
{t("shl.shell.skipToContent", "Zum Inhalt springen")}
{tenantLabel}
{children}
); }