'use client' import { Menu, Search, Bell, ChevronRight } from 'lucide-react' import { useAos, type ViewId } from '@/store/aos' import { ThemeToggle } from '@/components/theme-toggle' import { Button } from '@/components/ui/button' import { Badge } from '@/components/ui/badge' import { Avatar, AvatarFallback } from '@/components/ui/avatar' import { DropdownMenu, DropdownMenuContent, DropdownMenuItem, DropdownMenuLabel, DropdownMenuSeparator, DropdownMenuTrigger, } from '@/components/ui/dropdown-menu' const TITLES: Record = { dashboard: { title: 'Dashboard', crumb: 'Übersicht' }, reporting: { title: 'Reporting', crumb: 'Übersicht / Reporting' }, crm: { title: 'CRM', crumb: 'Vertrieb / CRM' }, leads: { title: 'Leads Finder', crumb: 'Vertrieb / Leads' }, estimates: { title: 'Angebote', crumb: 'Vertrieb / Angebote' }, projects: { title: 'Projekte', crumb: 'Lieferung / Projekte' }, support: { title: 'Support', crumb: 'Lieferung / Tickets' }, licenses: { title: 'Lizenzen', crumb: 'Betrieb / Lizenzen' }, contracts: { title: 'Verträge', crumb: 'Betrieb / Verträge' }, expenses: { title: 'Ausgaben', crumb: 'Betrieb / Ausgaben' }, finance: { title: 'Finanzen', crumb: 'Betrieb / Finanzen' }, accounting: { title: 'Buchhaltung', crumb: 'Betrieb / Buchhaltung' }, audit: { title: 'Audit-Protokoll', crumb: 'Betrieb / Audit' }, settings: { title: 'Erweiterungen', crumb: 'System / Module' }, setup: { title: 'Setup-Wizard', crumb: 'System / Setup' }, } export function TopBar() { const { view, setSidebarOpen, setCommandOpen } = useAos() const meta = TITLES[view] const crumbParts = meta.crumb.split(' / ') return (
{/* Breadcrumb */}
{crumbParts[0]} {crumbParts.length > 1 && ( <> {crumbParts[1]} )}
Max Brandt max@nordlicht.digital Rolle Owner Profil Sitzungen Abmelden
) }