"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const v=require("react/jsx-runtime"),o=require("react"),c=o.createContext(void 0);function x({children:s,initialComponents:m={}}){const[i,r]=o.useState(m),[p,C]=o.useState({}),a=o.useCallback((t,e)=>{r(n=>({...n,[t]:e}))},[]),l=o.useCallback(t=>{r(e=>({...e,...t}))},[]),b=o.useCallback(t=>{r(e=>{const{[t]:n,...u}=e;return u})},[]),d=o.useCallback((t,e)=>{C(n=>({...n,[t]:e}))},[]),g=o.useCallback(t=>{C(e=>{const{[t]:n,...u}=e;return u})},[]);return v.jsx(c.Provider,{value:{components:i,registerComponent:a,registerComponents:l,unregisterComponent:b,interruptComponents:p,registerInterruptComponent:d,unregisterInterruptComponent:g},children:s})}function k(){const s=o.useContext(c);if(!s)throw new Error("useCustomComponents must be used within a CustomComponentProvider");return s}exports.CustomComponentProvider=x;exports.useCustomComponents=k;
//# sourceMappingURL=CustomComponentProvider.cjs.js.map
