import { t } from "@/shared/i18n" import { Loader2 } from "lucide-react" export function SyncProgress({ progress }: { progress: string | null }) { if (!progress) return null if (progress === "fetching") { return (
{t("settings.syncFetching")}
) } if (progress.startsWith("saving:")) { const [, current, total] = progress.split(":") return (
{t("settings.syncSaving", { current, total })}
) } if (progress === "enriching:ids") { return (
{t("settings.syncEnrichingIds")}
) } if (progress === "enriching:metadata") { return (
{t("settings.syncEnrichingMetadata")}
) } return null }