{showFilesystemTabs ? (
{
void handleFilesystemTabChange(value === "local" ? "local" : "cloud");
}}
className="flex min-h-0 flex-1 flex-col"
>
{cloudContent}
{localContent}
) : (
cloudContent
)}
{versionDocId !== null && (
{
if (!open) setVersionDocId(null);
}}
documentId={versionDocId}
/>
)}
{isElectron && (
{
setFolderWatchOpen(nextOpen);
if (!nextOpen) setWatchInitialFolder(null);
}}
searchSpaceId={searchSpaceId}
initialFolder={watchInitialFolder}
onSuccess={refreshWatchedIds}
/>
)}
{
setLocalTrustDialogOpen(nextOpen);
if (!nextOpen) setPendingLocalPath(null);
}}
>
Trust this workspace?
Local mode can read and edit files inside the folders you select. Continue only if
you trust this workspace and its contents.
{pendingLocalPath && (
Folder path: {pendingLocalPath}
)}
Cancel {
try {
window.localStorage.setItem(LOCAL_FILESYSTEM_TRUST_KEY, "true");
} catch {}
setLocalTrustDialogOpen(false);
const path = pendingLocalPath;
setPendingLocalPath(null);
if (path) {
await applyLocalRootPath(path);
} else {
await runPickLocalRoot();
}
}}
>
I trust this workspace
!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 (