"use client"; import { usePathname } from "next/navigation"; import { useAppStore } from "@/lib/store"; import { Activity } from "lucide-react"; const BREADCRUMBS: Record = { "/airscale": "AirScale → E-Mail", "/linkedin": "LinkedIn → E-Mail", "/serp": "SERP → E-Mail", "/maps": "Google Maps → E-Mail", "/leadvault": "🗄️ Leadspeicher", "/results": "Ergebnisse & Verlauf", "/settings": "Einstellungen", }; export function TopBar() { const pathname = usePathname(); const { activeJobs } = useAppStore(); const runningJobs = activeJobs.filter(j => j.status === "running").length; const label = BREADCRUMBS[pathname] || "Dashboard"; return (
LeadFlow / {label}
{runningJobs > 0 && (
{runningJobs} Active Job{runningJobs > 1 ? "s" : ""}
)}
); }