"use client"; import React from "react"; import Link from "next/link"; import { usePathname } from "next/navigation"; import { FeatherBell, FeatherHelpCircle, FeatherPanelLeft, FeatherSearch, } from "@subframe/core"; import { ALLE_SEITEN, NAV_GRUPPEN } from "./navigation"; import { FeatherIcon } from "./FeatherIcon"; import { DATENSATZ_INFO } from "../../data/seed"; import { formatDatum, formatZahl } from "../../utils/formatters"; import { HEUTE } from "../../utils/dateUtils"; /** * Rahmen der Anwendung: feste Seitenleiste links, Inhalt rechts. * * Warum Seitenleiste statt Tab-Leiste: Die echte HiveGrid-Oberfläche * navigiert links; so passt der Prototyp beim Einbau ohne Umbau der * Informationsarchitektur. Die Leiste lässt sich auf Icon-Breite einklappen, * damit breite Tabellen und 12-Spalten-Raster Platz bekommen. */ export function AppShell({ children }: { children: React.ReactNode }) { const pathname = usePathname(); const [eingeklappt, setEingeklappt] = React.useState(false); const aktiveSeite = ALLE_SEITEN.find((s) => s.href !== "/" && pathname.startsWith(s.href)) ?? ALLE_SEITEN.find((s) => s.href === "/"); return (
Statistiken / {aktiveSeite?.label ?? "Übersicht"}
Suchen ⌘K
MK
{children}
); }