UNPKG

@payfit/unity-components

Version:

18 lines (17 loc) 562 B
import { createContext as e, useContext as t } from "react"; import { jsx as n } from "react/jsx-runtime"; //#region src/components/timeline/parts/TimelineStepContent.context.tsx var r = e(null); function i({ children: e, statusSlot: t }) { return /* @__PURE__ */ n(r.Provider, { value: { statusSlot: t }, children: e }); } function a() { let e = t(r); if (!e) throw Error("useTimelineStepContentContext must be used within TimelineStepContent"); return e; } //#endregion export { i as TimelineStepContentProvider, a as useTimelineStepContentContext };