import React from 'react'; import { MessageCircle, Megaphone, Users, Settings, } from 'lucide-react'; import { getAvatarProxyUrl } from '../utils/inboxUtils'; import { useRouter } from 'next/router'; export type TabType = 'chats' | 'broadcasts' | 'groups' | 'settings'; interface ThinSidebarProps { activeTab: TabType; setActiveTab: (tab: TabType) => void; activeInstance: any; // We'll pass the active instance to show the avatar } export default function ThinSidebar({ activeTab, setActiveTab, activeInstance }: ThinSidebarProps) { const router = useRouter(); const isConnected = activeInstance?.status === 'connected' || activeInstance?.status === 'open'; const renderIcon = (id: TabType, IconComponent: any, title: string) => { const isActive = activeTab === id; return ( ); }; return (