"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),t=require("react"),r=require("../Store/Store.js");require("../Store/utils.js");exports.StoreControl=function(i){var s=i.children,n=i.onChange,o=i.templateSettings,u=i.currentTemplateId,a=i.getDefaultTemplate,l=i.filterInitialTemplates,f=i.templateControls,p=r.storeApi.useInitialize,c=r.storeApi.useSetOnChange,m=r.storeApi.useSetTemplateData,S=r.storeApi.useSetHooks,T=r.storeApi.useSetTemplateControls,g=c(),d=m(),j=S(),A=T();return p(),t.useEffect((function(){g(n)}),[n,g]),t.useEffect((function(){d(u,o)}),[u,d,o]),t.useEffect((function(){j({getDefaultTemplate:a,filterInitialTemplates:l})}),[l,a,j]),t.useEffect((function(){A(f)}),[A,f]),e.jsx(e.Fragment,{children:s})};
//# sourceMappingURL=StoreControl.js.map
