import { ArrowLeftRight, Check, X } from "lucide-react"; import type { TransferDto } from "@/lib/api"; import { cn } from "@/lib/utils"; /** * The badge a transfer-matched row gets in place of (or alongside) its * category badge. A still-`suggested` match carries inline confirm/reject * icons, matching Sure's "Auto-matched badge" pattern; a `confirmed` one is * just a plain label, there's nothing left to decide. */ export function TransferBadge({ suggested, onConfirm, onReject, busy, }: { /** The pending Transfer this row is a leg of, or undefined if it's already confirmed. */ suggested?: TransferDto; onConfirm: () => void; onReject: () => void; busy?: boolean; }) { if (!suggested) { return ( Transfer ); } return ( Transfer? ); }