| | |
| | | import DialogCloseButton from './DialogCloseButton'; |
| | | import { usePapaParse } from './usePapaParse'; |
| | | |
| | | export function ImportModal({ open, onClose, importTemp, useCodeImport }) { |
| | | const ImportModal = ({ open, onClose, importTemp, useCodeImport, onceBatch = 10 }) => { |
| | | const refresh = useRefresh(); |
| | | |
| | | const { processBatch } = useCodeImport(); |
| | | const { importer, parseCsv, reset } = usePapaParse({ |
| | | batchSize: 10, |
| | | batchSize: onceBatch, |
| | | processBatch, |
| | | }); |
| | | |
| | |
| | | |
| | | return `${minutes}m ${seconds}s`; |
| | | } |
| | | |
| | | export default ImportModal; |