'use client'; import Link from 'next/link'; import { usePathname } from 'next/navigation'; import { MessageSquare, Bot, Shield, Settings, Plus, LogOut, LayoutDashboard, Activity } from 'lucide-react'; import { useAuthStore } from '@/stores/auth-store'; import { useWorkspaceStore } from '@/stores/workspace-store'; import { cn } from '@/lib/cn'; export default function Sidebar() { const pathname = usePathname(); const logout = useAuthStore((state) => state.logout); const currentWorkspace = useWorkspaceStore((state) => state.currentWorkspace); const navigation = [ { name: 'Dashboard', href: '/workspace', icon: LayoutDashboard, }, { name: 'Conversations', href: '/conversations', icon: MessageSquare, }, { name: 'Agents', href: '/agents', icon: Bot, }, { name: 'Monitoring', href: '/monitoring', icon: Activity, }, { name: 'Governance', href: '/governance', icon: Shield, }, { name: 'Settings', href: '/settings', icon: Settings, }, ]; return (
{/* Logo & Workspace header */}
B

BlackRoad OS

{currentWorkspace?.name || 'Workspace'}

{/* New conversation button */}
New Conversation
{/* Navigation */} {/* User footer */}
); }