{versionDocId !== null && (
{
if (!open) setVersionDocId(null);
}}
documentId={versionDocId}
/>
)}
{isElectron && (
{
setFolderWatchOpen(nextOpen);
if (!nextOpen) setWatchInitialFolder(null);
}}
searchSpaceId={searchSpaceId}
initialFolder={watchInitialFolder}
onSuccess={refreshWatchedIds}
/>
)}
!open && !isBulkDeleting && setBulkDeleteConfirmOpen(false)}
>
Delete {deletableSelectedIds.length} document
{deletableSelectedIds.length !== 1 ? "s" : ""}?
This action cannot be undone.{" "}
{deletableSelectedIds.length === 1
? "This document"
: `These ${deletableSelectedIds.length} documents`}{" "}
will be permanently deleted from your search space.
Cancel {
e.preventDefault();
handleBulkDeleteSelected();
}}
disabled={isBulkDeleting}
className="relative bg-destructive text-destructive-foreground hover:bg-destructive/90"
>
Delete
{isBulkDeleting && }
{
if (!open) {
setExportWarningOpen(false);
setExportWarningContext(null);
}
}}
>
Some documents are still processing
{exportWarningContext?.pendingCount} document
{exportWarningContext?.pendingCount !== 1 ? "s are" : " is"} currently being processed
and will be excluded from the export. Do you want to continue?
Cancel
Export anyway
Enable AI File Sorting?
All documents in this search space will be organized into folders by connector type,
date, and AI-generated categories. New documents will also be sorted automatically.
You can disable this at any time.
CancelEnable
>
);
if (embedded) {
return (