import { IconPlus, IconLogout } from '@tabler/icons-react' import type { Session } from '../lib/types' interface SessionSidebarProps { sessions: Session[] activeSessionId: string | null onSelect: (id: string) => void onCreate: () => void onLogout: () => void } export function SessionSidebar({ sessions, activeSessionId, onSelect, onCreate, onLogout, }: SessionSidebarProps) { return (

Sessions

{sessions.length === 0 ? (
No sessions yet. Click + to start researching.
) : ( sessions.map(s => (
onSelect(s.session_id)} > {s.session_id.slice(0, 12)}...
{s.total_messages ?? 0} msgs ยท {s.status}
)) )}
) }