'use client'; import React from 'react'; import Link from 'next/link'; import { usePathname } from 'next/navigation'; import { Layers, MessageSquare, Mail, BarChart3, Share2, PhoneCall, Truck, CheckCircle2, AlertCircle } from 'lucide-react'; interface IntegrationsHeaderNavProps { activeTab?: string; badgeCounts?: Record; } export const IntegrationsHeaderNav: React.FC = ({ activeTab }) => { const pathname = usePathname(); const tabs = [ { id: 'overview', name: 'All Integrations', href: '/integrations', icon: Layers, match: pathname === '/integrations', }, { id: 'whatsapp', name: 'WhatsApp Hub', description: 'OpenWA QR & WATI', href: '/integrations/whatsapp', icon: MessageSquare, match: pathname.startsWith('/integrations/whatsapp'), }, { id: 'email', name: 'Email Dispatcher', description: 'ZeptoMail & SMTP', href: '/integrations/email', icon: Mail, match: pathname.startsWith('/integrations/email'), }, { id: 'google-analytics', name: 'Google Analytics GA4', description: 'Live Telemetry', href: '/integrations/google-analytics', icon: BarChart3, match: pathname.startsWith('/integrations/google-analytics') || pathname.startsWith('/analytics/google'), }, { id: 'meta-ads', name: 'Meta Ads & Graph', description: 'FB / IG Graph API', href: '/integrations/meta-ads', icon: Share2, match: pathname.startsWith('/integrations/meta-ads'), }, { id: 'call', name: 'Knowlarity Telephony', description: 'Virtual IVR & Calls', href: '/integrations/call', icon: PhoneCall, match: pathname.startsWith('/integrations/call'), }, { id: 'shipping', name: 'Shiprocket Logistics', description: 'Courier & Serviceability', href: '/integrations/shipping', icon: Truck, match: pathname.startsWith('/integrations/shipping'), }, ]; return (

Enterprise Integrations Hub

Live Active

Centralized microservice connections, credential synchronization, and direct gateway actions.

{/* Tabs navigation */}
{tabs.map((tab) => { const Icon = tab.icon; const isActive = tab.match || activeTab === tab.id; return ( {tab.name} ); })}
); };