import { useVoiceStore } from '../stores/voice.ts'; import { ThemeToggle } from './ThemeToggle.tsx'; interface MobileNavProps { activeTab: 'servers' | 'channels' | 'chat' | 'members'; onTabChange: (tab: 'servers' | 'channels' | 'chat' | 'members') => void; onToggleDrawer: () => void; } export function MobileNav({ activeTab, onTabChange, onToggleDrawer }: MobileNavProps) { const isConnected = useVoiceStore((state: any) => state.isConnected); const tabs = [ { id: 'servers' as const, label: '[=]', title: 'Servers' }, { id: 'channels' as const, label: '[#]', title: 'Channels' }, { id: 'chat' as const, label: '[_]', title: 'Chat' }, { id: 'members' as const, label: '[@]', title: 'Members' }, ]; return (
{tabs.map((tab) => ( ))} {isConnected && (
)}
{/* Safe area for phones with bottom notch */}
); }