diff --git a/web/src/components/Sidebar/SessionSelector.tsx b/web/src/components/Sidebar/SessionSelector.tsx deleted file mode 100644 index bb40b9c..0000000 --- a/web/src/components/Sidebar/SessionSelector.tsx +++ /dev/null @@ -1,78 +0,0 @@ -import { MessageSquare } from 'lucide-react' -import type { SessionSummary } from '../../types/protocol' - -interface SessionSelectorProps { - sessions: SessionSummary[] - selectedSessionId: string | null - onSelectSession: (sessionId: string) => void -} - -export function SessionSelector({ - sessions, - selectedSessionId, - onSelectSession, -}: SessionSelectorProps) { - if (sessions.length === 0) { - return ( -
-

暂无会话

-
- ) - } - - return ( -
-
- - 会话 - - {sessions.length} -
-
- {sessions.map((s) => { - const isActive = s.session_id === selectedSessionId - return ( - - ) - })} -
-
- ) -}