UNPKG

@adyen/adyen-platform-experience-web

Version:

![Platform Experience header](https://github.com/Adyen/adyen-platform-experience-web/assets/7926613/18094965-9e01-450e-8dc9-ea84e6b22c2b)

37 lines (36 loc) 1.19 kB
import { jsx as n } from "../../../external/.pnpm/preact@10.28.2/node_modules/preact/jsx-runtime/dist/jsxRuntime.module.js"; import { UNDEFINED_ERROR as t } from "../getCommonErrorCode.js"; import m from "../../internal/CopyText/CopyText.js"; const c = (e, o, r) => { if (!e) return t; switch (e.errorCode) { case void 0: return { title: "common.errors.somethingWentWrong", message: [o, "common.errors.retry"], refreshComponent: !0 }; case "00_500": { const s = r ? "common.errors.errorCode" : "common.errors.errorCodeSupport"; return { title: "common.errors.somethingWentWrong", message: [o, s], translationValues: { [s]: e.requestId ? /* @__PURE__ */ n(m, { isUnderlineVisible: !0, copyButtonAriaLabelKey: "common.actions.copy.labels.errorCode", textToCopy: e.requestId }) : null }, onContactSupport: r }; } case "30_112": return { title: "common.errors.notFound", message: ["disputes.management.common.errors.notFound"], onContactSupport: r }; default: return t; } }; export { c as getDisputesErrorMessage };