import React from 'react'; interface UploadSectionProps { fileInputRef: React.RefObject; isUploading: boolean; uploadError: string | null; onFileChange: (event: React.ChangeEvent) => void; } export function UploadSection({ fileInputRef, isUploading, uploadError, onFileChange, }: UploadSectionProps) { return (
fileInputRef.current?.click()} >

Upload Document

PDF, DOCX, TXT up to 10MB
{isUploading && (
Uploading & Processing...
)} {uploadError && (
{uploadError}
)}
); }