"use client"; import { usePathname } from "next/navigation"; import { useAppStore } from "@/lib/store"; import { Activity } from "lucide-react"; const BREADCRUMBS: Record = { "/airscale": "AirScale → Email", "/linkedin": "LinkedIn → Email", "/serp": "SERP → Email", "/results": "Results & History", "/settings": "Settings", }; 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" : ""}
)}
); }