import { CheckIcon, RefreshIcon } from "../ui/Icons"; import { Spinner } from "../ui/Spinner"; /** * Primary action button on the dashboard. Swaps icon + colour scheme * depending on the sync lifecycle (idle → loading → success flash). */ export function SyncButton({ onClick, status = "idle", className = "" }) { const isLoading = status === "loading"; const isSuccess = status === "success"; const palette = isSuccess ? "bg-orcid-green-soft text-orcid-green-text border border-orcid-green-border" : isLoading ? "bg-surface-secondary text-ink-secondary border border-surface-border" : "bg-brand-primary text-white border border-transparent hover:bg-brand-primary-hover"; return ( ); }