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
};
