"use client"; import { Settings, Cpu, Key, Shield, Server, Keyboard, Database, } from "lucide-react"; import { cn } from "@/lib/utils"; export type SettingsSection = | "general" | "model" | "api" | "permissions" | "mcp" | "keyboard" | "data"; interface NavItem { id: SettingsSection; label: string; icon: React.ElementType; } const NAV_ITEMS: NavItem[] = [ { id: "general", label: "General", icon: Settings }, { id: "model", label: "Model", icon: Cpu }, { id: "api", label: "API & Auth", icon: Key }, { id: "permissions", label: "Permissions", icon: Shield }, { id: "mcp", label: "MCP Servers", icon: Server }, { id: "keyboard", label: "Keyboard", icon: Keyboard }, { id: "data", label: "Data & Privacy", icon: Database }, ]; interface SettingsNavProps { active: SettingsSection; onChange: (section: SettingsSection) => void; searchQuery: string; } export function SettingsNav({ active, onChange, searchQuery }: SettingsNavProps) { const filtered = searchQuery ? NAV_ITEMS.filter((item) => item.label.toLowerCase().includes(searchQuery.toLowerCase()) ) : NAV_ITEMS; return ( ); }