import { Box, Loader2, Mic, Server, Speaker, Volume2 } from 'lucide-react'; import voiceboxLogo from '@/assets/voicebox-logo.png'; import { cn } from '@/lib/utils/cn'; import { useGenerationStore } from '@/stores/generationStore'; import { usePlayerStore } from '@/stores/playerStore'; interface SidebarProps { activeTab: string; onTabChange: (tab: string) => void; isMacOS?: boolean; } const tabs = [ { id: 'main', icon: Volume2, label: 'Generate' }, { id: 'voices', icon: Mic, label: 'Voices' }, { id: 'audio', icon: Speaker, label: 'Audio' }, { id: 'models', icon: Box, label: 'Models' }, { id: 'server', icon: Server, label: 'Server' }, ]; export function Sidebar({ activeTab, onTabChange, isMacOS }: SidebarProps) { const isGenerating = useGenerationStore((state) => state.isGenerating); const audioUrl = usePlayerStore((state) => state.audioUrl); const isPlayerVisible = !!audioUrl; return (