import { ChevronRight } from "lucide-react"; import { Fragment } from "react"; import { IndexingProgress } from "./IndexingProgress"; import { Badge } from "./ui/badge"; export function BrowseWorkspaceCard({ crumbs, navigate, selectedCollection, syncError, syncJobId, syncTarget, onSyncComplete, onSyncError, }: { crumbs: Array<{ label: string; location: string }>; navigate: (to: string | number) => void; selectedCollection: string; syncError: string | null; syncJobId: string | null; syncTarget: | { kind: "all"; } | { kind: "collection"; name: string; } | null; onSyncComplete: () => void; onSyncError: (error: string) => void; }) { return (
Collection Controls
Navigate collections and folders from the tree, then use the detail pane to open notes, inspect folders, and re-index the active collection after external edits.
{selectedCollection ? ({syncError}
) : syncTarget ? (Re-index queued for{" "} {syncTarget.kind === "all" ? "all collections" : syncTarget.name} .
) : null}