import React from 'react'; import { Link, useLocation } from 'wouter'; import { cn } from '@/lib/utils'; import { Activity, Brain, Cable, Cpu, Database, Eye, FlaskConical, FolderSync, History, Layers, LayoutTemplate, Settings, Menu, Gauge, Shield, Sparkles, ExternalLink, Users, GitBranch, ListChecks, Map, Telescope, Target, Wand2, Boxes, Network, Zap, FlaskRound, Merge, ScanLine, Leaf, RotateCcw, Clapperboard, SlidersHorizontal, SearchCheck, Code2, Infinity as InfinityIcon, } from 'lucide-react'; const coreItems = [ { name: 'Operational Core', href: '/operational-core', icon: InfinityIcon }, { name: 'Cockpit', href: '/cockpit', icon: Activity }, { name: 'Brain', href: '/brain', icon: Brain }, { name: 'Compute', href: '/compute', icon: Cpu }, { name: 'Connections', href: '/connections', icon: Cable }, { name: 'Syncs', href: '/syncs', icon: FolderSync }, { name: 'Runs', href: '/runs', icon: History }, { name: 'Templates', href: '/templates', icon: LayoutTemplate }, { name: 'Settings', href: '/settings', icon: Settings }, { name: 'Admin Usage', href: '/admin/usage', icon: Gauge }, { name: 'AGI Forecast', href: '/agi-forecast', icon: Telescope }, ]; const fabricItems = [ { name: 'Sources', href: '/sources', icon: Database }, { name: 'Models', href: '/models', icon: Boxes }, { name: 'Destinations', href: '/destinations', icon: Network }, { name: 'Mappings', href: '/mappings', icon: GitBranch }, { name: 'Policies', href: '/policies', icon: ListChecks }, { name: 'Observability', href: '/observability', icon: Telescope }, { name: 'Outcomes', href: '/outcomes', icon: Target }, { name: 'Agents', href: '/agents', icon: Users }, { name: 'Roadmap', href: '/roadmap', icon: Map }, ]; const sovereignItems = [ { name: 'AI Hub', href: '/sovereign-ai-hub', icon: Shield }, { name: 'Model Fleet', href: '/sovereign-ai-hub/model-fleet', icon: Layers }, { name: 'Inference', href: '/sovereign-ai-hub/inference', icon: Eye }, { name: 'Distillery', href: '/sovereign-ai-hub/distillery', icon: FlaskConical }, { name: 'PRAXIS', href: '/sovereign-ai-hub/praxis', icon: Wand2 }, { name: 'Data Estate', href: '/sovereign-ai-hub/data-estate', icon: Database }, { name: 'Cognitive', href: '/sovereign-ai-hub/cognitive', icon: Brain }, ]; const innovationItems = [ { name: 'Innovation Brief', href: '/innovation', icon: Zap }, { name: 'Audience SQL', href: '/innovation/audience-sql', icon: FlaskRound }, { name: 'Lineage Graph', href: '/innovation/lineage', icon: ScanLine }, { name: 'Drift Repair', href: '/innovation/drift-repair', icon: GitBranch }, { name: 'Golden Record', href: '/innovation/golden-record', icon: Merge }, { name: 'Cost & Carbon', href: '/innovation/cost-carbon', icon: Leaf }, { name: 'Closed Loop', href: '/innovation/closed-loop', icon: RotateCcw }, { name: 'Sim Theater', href: '/innovation/sim-theater', icon: Clapperboard }, { name: 'Mapper Accuracy', href: '/innovation/mapper-accuracy', icon: SlidersHorizontal }, { name: 'Dest Discovery', href: '/innovation/destination-discovery', icon: SearchCheck }, { name: 'Policy DSL', href: '/innovation/policy-dsl', icon: Code2 }, ]; const externalNavItems = [ { name: 'A11oy Conductor', href: '/', icon: Sparkles }, ]; function NavLink({ item, isActive, collapsed }: { item: { name: string; href: string; icon: React.ComponentType<{ className?: string }> }; isActive: boolean; collapsed: boolean }) { return (