@adyen/adyen-platform-experience-web
Version:

25 lines (24 loc) • 908 B
JavaScript
import { jsx as n } from "../../../../external/preact/jsx-runtime/dist/jsxRuntime.module.js";
import { useMemo as i } from "../../../../external/preact/hooks/dist/hooks.module.js";
import a from "../../DataOverviewDetails/DataOverviewDetails.js";
/* empty css */
import { Fragment as m } from "../../../../external/preact/dist/preact.module.js";
const c = {
base: "adyen-pe-modal-content"
};
function h({ type: r, data: o, dataCustomization: t, ...e }) {
const s = i(() => {
switch (r) {
case "payout":
return { ...o, type: r, ...e };
case "transaction":
return { id: o, type: r, ...e };
default:
return { data: o, type: r };
}
}, [o, e, r]);
return /* @__PURE__ */ n(m, { children: s && /* @__PURE__ */ n("div", { className: c.base, children: /* @__PURE__ */ n(a, { ...s, dataCustomization: t }) }) });
}
export {
h as default
};