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)

18 lines (17 loc) 453 B
import { useMemo as t } from "../../../external/preact/hooks/dist/hooks.module.js"; import u from "../../../core/Context/useCoreContext.js"; import { uuid as n } from "../../../utils/random/uuid.js"; const c = (r) => { const { i18n: o } = u(); return t(() => r.map((e) => ({ key: e.key, value: e.value, id: n(), label: o.get(e.key), type: e.type, config: e.config })), [o, r]); }; export { c as useStructuredListItems };