import { Key, Volume2, Palette, X, ChevronDown } from 'lucide-react'; import { Button } from '../ui/button'; import { DropdownMenu, DropdownMenuContent, DropdownMenuItem, DropdownMenuTrigger, } from '../ui/dropdown-menu'; import { cn } from '@/lib/utils'; export type SettingsSection = 'api-keys' | 'voice' | 'appearance'; type SettingsNavigationProps = { activeSection: SettingsSection; onSectionChange: (section: SettingsSection) => void; onClose: () => void; variant?: 'desktop' | 'mobile'; }; const sections: { id: SettingsSection; label: string; icon: typeof Key }[] = [ { id: 'api-keys', label: 'API Keys', icon: Key }, { id: 'voice', label: 'Voice & TTS', icon: Volume2 }, { id: 'appearance', label: 'Appearance', icon: Palette }, ]; export function SettingsNavigation({ activeSection, onSectionChange, onClose, variant = 'desktop', }: SettingsNavigationProps) { if (variant === 'mobile') { const activeItem = sections.find((s) => s.id === activeSection); const ActiveIcon = activeItem?.icon || Key; return (