"use client"; import Link from "next/link"; import { usePathname } from "next/navigation"; import { cn } from "@/lib/utils"; import { Building2, Linkedin, Search, BarChart3, Settings, Zap, ChevronLeft, ChevronRight } from "lucide-react"; import { useAppStore } from "@/lib/store"; import { useEffect, useState } from "react"; const navItems = [ { href: "/airscale", icon: Building2, label: "AirScale → Email", color: "text-blue-400" }, { href: "/linkedin", icon: Linkedin, label: "LinkedIn → Email", color: "text-blue-500" }, { href: "/serp", icon: Search, label: "SERP → Email", color: "text-purple-400" }, { href: "/results", icon: BarChart3, label: "Results & History", color: "text-green-400" }, { href: "/settings", icon: Settings, label: "Settings", color: "text-gray-400" }, ]; interface CredentialStatus { anymailfinder: boolean; apify: boolean; vayne: boolean; } export function Sidebar() { const pathname = usePathname(); const { sidebarCollapsed, setSidebarCollapsed } = useAppStore(); const [creds, setCreds] = useState({ anymailfinder: false, apify: false, vayne: false }); useEffect(() => { fetch("/api/credentials") .then(r => r.json()) .then(d => setCreds(d)) .catch(() => {}); }, []); return ( ); }