DRB
{/* Desktop links */}
{navLinks.map(({ href, label }) => (
{label}
{label === "Network" && pending.length > 0 && (
{pending.length}
)}
{label === "Watch" && unackedAlerts.length > 0 && (
{unackedAlerts.length}
)}
))}
{/* Theme toggle */}
{/* Profile avatar + dropdown (desktop) — Settings/Admin/Trips/Profile live here now, not the nav bar */}
{profileMenuOpen && (
<>
{/* Click-away backdrop */}
setProfileMenuOpen(false)} />
setProfileMenuOpen(false)}
className="block px-3 py-2 text-ink-2 hover:bg-raised hover:text-ink transition-colors"
>
Profile
{showSettings && (
setProfileMenuOpen(false)}
className="block px-3 py-2 text-ink-2 hover:bg-raised hover:text-ink transition-colors"
>
Settings
)}
{showTrips && (
setProfileMenuOpen(false)}
className="block px-3 py-2 text-ink-2 hover:bg-raised hover:text-ink transition-colors"
>
Trips
)}
{isAdmin && (
setProfileMenuOpen(false)}
className="block px-3 py-2 text-ink-2 hover:bg-raised hover:text-ink transition-colors"
>
Admin
)}
>
)}
{/* Hamburger (mobile) */}
{/* Mobile drawer */}
{mobileOpen && (
{navLinks.map(({ href, label }) => (
setMobileOpen(false)}
className={`py-2 text-sm font-medium transition-colors flex items-center gap-2 ${
isActive(href) ? "text-ink" : "text-ink-muted"
}`}
>
{label}
{label === "Network" && pending.length > 0 && (
{pending.length}
)}
{label === "Watch" && unackedAlerts.length > 0 && (
{unackedAlerts.length}
)}
))}
setMobileOpen(false)}
className={`py-2 text-sm font-medium transition-colors ${
pathname.startsWith("/profile") ? "text-ink" : "text-ink-muted"
}`}
>
Profile
{showSettings && (
setMobileOpen(false)} className="py-2 text-sm font-medium text-ink-muted">
Settings
)}
{showTrips && (
setMobileOpen(false)} className="py-2 text-sm font-medium text-ink-muted">
Trips
)}
{isAdmin && (
setMobileOpen(false)} className="py-2 text-sm font-medium text-ink-muted">
Admin
)}
)}
);
}