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) 905 B
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 };