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)

19 lines (18 loc) 725 B
import { jsx as e } from "../../../external/.pnpm/preact@10.28.2/node_modules/preact/jsx-runtime/dist/jsxRuntime.module.js"; import { createContext as n } from "../../../external/.pnpm/preact@10.28.2/node_modules/preact/dist/preact.module.js"; import { useContext as i } from "../../../external/.pnpm/preact@10.28.2/node_modules/preact/hooks/dist/hooks.module.js"; const o = n(null); function s() { const r = i(o); if (!r) throw new Error("useWizardFormContext must be used within a WizardFormProvider"); return r; } function d({ children: r, ...t }) { return /* @__PURE__ */ e(o.Provider, { value: t, children: r }); } export { o as WizardFormContext, d as WizardFormProvider, s as useWizardFormContext };