import { Link } from 'react-router'; import { ArrowLeft, Archive, Trash2, Maximize2, Minimize2 } from 'lucide-react'; type SessionBarProps = { listPath: string; provider: 'claude' | 'opencode'; sessionTitle: string | undefined; isConnected: boolean; isGenerating: boolean; fullscreen: boolean; onArchive: (() => void) | undefined; onDelete: () => void; onToggleFullscreen: () => void; }; export const SessionBar = ({ listPath, provider, sessionTitle, isConnected, isGenerating, fullscreen, onArchive, onDelete, onToggleFullscreen, }: SessionBarProps) => (
{provider === 'claude' && onArchive && ( )}
{sessionTitle ?? 'New chat'}
{!isConnected ? ( ) : isGenerating ? ( ) : ( )} {!isConnected ? 'Disconnected' : isGenerating ? 'Working...' : ''}
);