"use client";
import { j as t } from "../../../node_modules/.pnpm/react@19.1.0/node_modules/react/jsx-runtime.mjs";
import "react";
import { ReactComponent as r } from "../../assets/images/TxnAlert.svg.mjs";
import { ReactComponent as s } from "../../assets/images/TxnError.svg.mjs";
import { ReactComponent as a } from "../../assets/images/TxnPending.svg.mjs";
import { ReactComponent as m } from "../../assets/images/TxnSubmitted.svg.mjs";
import { ReactComponent as i } from "../../assets/images/TxnSuccess.svg.mjs";
import { ToastGeneric as c } from "../ToastGeneric/index.mjs";
function p(e) {
  function n(o) {
    switch (o) {
      case "pending":
        return /* @__PURE__ */ t.jsx(a, {});
      case "submitted":
        return /* @__PURE__ */ t.jsx(m, {});
      case "error":
        return /* @__PURE__ */ t.jsx(s, {});
      case "alert":
        return /* @__PURE__ */ t.jsx(r, {});
      case "success":
        return /* @__PURE__ */ t.jsx(i, {});
    }
  }
  return /* @__PURE__ */ t.jsx(
    c,
    {
      image: n(e.status),
      title: e.title,
      subtext: e.subtext,
      showCloseButton: e.showCloseButton,
      onClick: e.onClick
    }
  );
}
export {
  p as default
};
//# sourceMappingURL=index.mjs.map
