import { ProgressActivityW700 as l } from "@material-symbols-svg/react-rounded/icons/progress-activity";
import { CheckCircleFillW700 as o } from "@material-symbols-svg/react-rounded/icons/check-circle";
import { CancelFillW700 as t } from "@material-symbols-svg/react-rounded/icons/cancel";
import { ArrowCircleLeftFillW700 as a } from "@material-symbols-svg/react-rounded/icons/arrow-circle-left";
import { InfoFillW700 as n } from "@material-symbols-svg/react-rounded/icons/info";
import { sentenceCase as c } from "change-case";
const r = (s, e) => c([e, s].filter(Boolean).join(" ")), f = (s, e) => {
  switch (s) {
    case "PENDING":
      return {
        label: r("Pending", e),
        colorClassName: "text-sw-accent-50",
        Icon: l,
        iconIsSpinning: !0
      };
    case "WAITING_FOR_FUNDS":
      return {
        label: "Waiting for funds",
        colorClassName: "text-sw-accent-50",
        Icon: l,
        iconIsSpinning: !0
      };
    case "PROCESSING":
      return {
        label: r("Processing", e),
        colorClassName: "text-sw-accent-50",
        Icon: l,
        iconIsSpinning: !0
      };
    case "SUCCESS":
      return {
        label: r("Completed", e),
        colorClassName: "text-sw-status-success",
        Icon: o
      };
    case "FAILED":
      return {
        label: r("Failed", e),
        colorClassName: "text-sw-status-error",
        Icon: t
      };
    case "REFUNDED":
      return {
        label: r("Refunded", e),
        colorClassName: "text-sw-status-warning",
        Icon: a
      };
    case "UNRESOLVED":
      return {
        label: r("Unresolved", e),
        colorClassName: "text-sw-status-warning",
        Icon: n
      };
    default:
      return {
        label: s,
        colorClassName: "text-sw-gray-200"
      };
  }
};
export {
  f as getTransactionStatusLabel
};
//# sourceMappingURL=getTransactionStatusLabel.js.map
