'use client'; import { useState } from 'react'; import Link from 'next/link'; import { usePathname } from 'next/navigation'; import { LayoutDashboard, AppWindow, Shield, ShieldCheck, MessageSquare, Settings, Menu, X, LogOut, Cpu, FileText, Users, Wallet, } from 'lucide-react'; import clsx from 'clsx'; import { useAuth } from '@/lib/auth-context'; const navigation = [ { name: 'Dashboard', href: '/', icon: LayoutDashboard }, { name: 'Applications', href: '/applications', icon: AppWindow }, { name: 'Guardrails', href: '/policies', icon: Shield }, { name: 'Security Guard', href: '/security', icon: ShieldCheck }, { name: 'Budgets', href: '/budgets', icon: Wallet }, { name: 'Requests', href: '/requests', icon: FileText }, { name: 'Playground', href: '/playground', icon: MessageSquare }, ]; // Admin navigation items const adminNavigation = [ { name: 'Models', href: '/admin/models', icon: Cpu }, { name: 'Users', href: '/users', icon: Users }, { name: 'Settings', href: '/settings', icon: Settings }, ]; export default function Sidebar() { const pathname = usePathname(); const { user, logout } = useAuth(); const [mobileOpen, setMobileOpen] = useState(false); return ( <> {/* Mobile menu button */} {/* Sidebar */}
{user.name}
{user.email}
v0.1.0 (Community)