import React from "react"; import { useRef } from "react"; import { Button } from "../common/index"; export default function UploadDocumentsModal({ open, onClose, onUpload, uploading = false, progress = 0, allowMultiple = true, title = "Upload Documents", subtitle = "Supported: PDF, TXT, EPUB", }) { const inputRef = useRef(null); if (!open) return null; return (
event.stopPropagation()} >

{title}

{subtitle}

{ const files = Array.from(event.target.files || []); if (files.length) { void onUpload(files); } event.target.value = ""; }} />

Select one or more files to upload

); }