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)

25 lines (24 loc) 908 B
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 };