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

25 lines (24 loc) • 905 B
JavaScript
import { jsx as e } from "../../../../external/preact/jsx-runtime/dist/jsxRuntime.module.js";
import { useMemo as a } from "../../../../external/preact/hooks/dist/hooks.module.js";
import i 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: s, ...n }) {
const t = a(() => {
switch (r) {
case "payout":
return { ...o, type: r, ...n };
case "transaction":
return { id: o, type: r, ...n };
default:
return { data: o, type: r };
}
}, [o, r]);
return /* @__PURE__ */ e(m, { children: t && /* @__PURE__ */ e("div", { className: c.base, children: /* @__PURE__ */ e(i, { ...t, dataCustomization: s }) }) });
}
export {
h as default
};