import React from 'react'; import type { DocumentInfo } from '../../types'; interface DocumentListProps { documents: DocumentInfo[]; selectedDocId: string | null; onSelect: (id: string) => void; onDelete: (id: string, event: React.MouseEvent) => void; } export function DocumentList({ documents, selectedDocId, onSelect, onDelete, }: DocumentListProps) { return (