import { useState } from 'react'; import { SquarePen, MessageSquare, Bot, Search, X, Settings } from 'lucide-react'; import { ConversationList } from './ConversationList'; import { CloneManager } from './CloneManager'; import { useChatStore } from '../store/chatStore'; export type MainViewType = 'chat'; interface SidebarProps { onOpenSettings?: () => void; onMainViewChange?: (view: MainViewType) => void; onNewChat?: () => void; } type Tab = 'conversations' | 'clones'; export function Sidebar({ onOpenSettings, onMainViewChange, }: Omit) { const [activeTab, setActiveTab] = useState('conversations'); const [searchQuery, setSearchQuery] = useState(''); const newConversation = useChatStore((s) => s.newConversation); const handleNewConversation = () => { newConversation(); onMainViewChange?.('chat'); }; const handleNavClick = (tab: Tab) => { setActiveTab(tab); onMainViewChange?.('chat'); }; return ( ); }