+
+ {file.service && (
+
+
+
+ )}
+
+
{file.file.name}
+
+ {file.status === 'ready'
+ ? notePayloads.length > 1 || tagPayloads.length
+ ? payloadsImportMessage
+ : 'Ready to import'
+ : null}
+ {file.status === 'pending' && 'Could not auto-detect service. Please select manually.'}
+ {file.status === 'parsing' && 'Parsing...'}
+ {file.status === 'importing' && 'Importing...'}
+ {file.status === 'error' && `${file.error}`}
+ {file.status === 'success' && file.successMessage}
+
+
+
+ {file.service == null && (
+
+
+
+
+ )}
+ {file.status === 'success' &&
}
+ {file.status === 'error' &&
}
+
+ )
+}
diff --git a/packages/web/src/javascripts/Components/ImportModal/InitialPage.tsx b/packages/web/src/javascripts/Components/ImportModal/InitialPage.tsx
new file mode 100644
index 000000000..101aa2b61
--- /dev/null
+++ b/packages/web/src/javascripts/Components/ImportModal/InitialPage.tsx
@@ -0,0 +1,93 @@
+import { ClassicFileReader } from '@standardnotes/filepicker'
+import { NoteImportType } from '@standardnotes/ui-services'
+import { useCallback } from 'react'
+import Button from '../Button/Button'
+import Icon from '../Icon/Icon'
+import { ImportModalAction } from './Types'
+
+type Props = {
+ dispatch: React.Dispatch