"use client"; import Link from "next/link"; import { usePathname } from "next/navigation"; import { House, Search, Settings, Sparkles, FolderKanban, ShieldCheck, MessageCircle, Brain } from "lucide-react"; import { PRODUCT_NAME } from "@/lib/product-config"; import { isFeatureEnabled } from "@/lib/feature-flags"; const navItems: { href: string; label: string; icon: typeof House; flag?: string }[] = [ { href: "/dashboard", label: "Dashboard", icon: House }, { href: "/workspaces", label: "Workspaces", icon: FolderKanban }, { href: "/reviews", label: "Reviews", icon: ShieldCheck, flag: "mcp_tools_enabled" }, { href: "/prompts", label: "Prompts", icon: Sparkles }, { href: "/search", label: "Search", icon: Search }, { href: "/chat", label: "Workspace chat", icon: MessageCircle }, { href: "/palace", label: "Palace", icon: Brain }, { href: "/settings", label: "Settings", icon: Settings }, ]; export function Sidebar({ open }: { open?: boolean }) { const pathname = usePathname() ?? ""; return ( ); }