UNPKG

@payfit/unity-components

Version:

14 lines (13 loc) 497 B
import { createContext as e, useContext as t } from "react"; import { jsx as n } from "react/jsx-runtime"; //#region src/components/funnel-layout/FunnelLayout.context.tsx var r = e(void 0), i = () => { let e = t(r); if (!e) throw Error("useFunnelLayout must be used within a FunnelLayoutProvider"); return e; }, a = ({ children: e, ids: t }) => /* @__PURE__ */ n(r.Provider, { value: { ids: t }, children: e }); //#endregion export { a as FunnelLayoutProvider, i as useFunnelLayoutContext };