/* Hallmark · pre-emit critique: P5 H5 E5 S5 R5 V5 */ /* Hallmark · redesign: Navbar · studied-DNA: https://inihaus.de · nav: N1b Architectural Masthead */ import React from 'react'; import { Calendar, User, LogOut, Sparkles, Plus, Layers, Settings, Edit3, Home, CalendarDays, TableProperties, Sun, Moon, Monitor } from 'lucide-react'; export default function Navbar({ branding, user, activeTab, onChangeTab, themeMode, onChangeThemeMode, onLogout, onOpenAuth, onOpenCreateEvent, onOpenTemplates, onOpenProfile, onOpenAdmin, pwaInstallPrompt, onInstallPwa }) { const primaryColor = branding?.primary_color || 'var(--brand-primary)'; const cycleTheme = () => { if (themeMode === 'dark') onChangeThemeMode('light'); else if (themeMode === 'light') onChangeThemeMode('auto'); else onChangeThemeMode('dark'); }; return (
{/* Brand Section */}
onChangeTab('home')} style={{ backgroundColor: primaryColor }} className="w-8 h-8 rounded-sm flex items-center justify-center text-white font-bold cursor-pointer shadow-sm" > {branding?.logo_url ? ( Logo ) : ( )}
onChangeTab('home')} className="cursor-pointer">

{branding?.app_name || "Schichtplaner"}

{user ? ( [ {user.display_name || user.username} ] ) : ( [ GAST-MODUS ] )}
{/* Center Navigation Tabs (Clean Hallmark N1b Style) */} {/* Right Action Controls */}
{/* Theme Mode Button */} {pwaInstallPrompt && ( )} {user ? ( <> {(user.is_admin_user || user.is_staff || user.is_superuser) && ( )}
) : ( )}
{/* Mobile Navigation */}
); }