import React from 'react'; import { Document } from '../../../shared/types'; interface Props { documents: Document[]; onSelect: (doc: Document) => void; selectedId: string | null; } export function DocumentList({ documents, onSelect, selectedId }: Props) { if (documents.length === 0) { return (