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)

21 lines (20 loc) 576 B
import { useMemo as o } from "../../../external/.pnpm/preact@10.28.2/node_modules/preact/hooks/dist/hooks.module.js"; import n from "../../../core/Context/preact/useCoreContext.js"; import { uuid as a } from "../../../utils/random/uuid.js"; const p = (e) => { const { i18n: u } = n(); return o(() => e.map((r) => ({ key: r.key, value: r.value, id: r.id, uid: r.id || a(), label: r.label ?? u.get(r.key), type: r.type, config: r.config, rawValue: r.rawValue, render: r.render })), [u, e]); }; export { p as useStructuredListItems };