import{jsx as e,Fragment as t}from"react/jsx-runtime";import{useEffect as r}from"react";import{storeApi as n}from"../Store/Store.js";import"../Store/utils.js";var i=function(i){var o=i.children,a=i.onChange,l=i.templateSettings,m=i.currentTemplateId,u=i.getDefaultTemplate,s=i.filterInitialTemplates,p=i.templateControls,f=n.useInitialize,c=n.useSetOnChange,S=n.useSetTemplateData,T=n.useSetHooks,g=n.useSetTemplateControls,h=c(),C=S(),I=T(),d=g();return f(),r((function(){h(a)}),[a,h]),r((function(){C(m,l)}),[m,C,l]),r((function(){I({getDefaultTemplate:u,filterInitialTemplates:s})}),[s,u,I]),r((function(){d(p)}),[d,p]),e(t,{children:o})};export{i as StoreControl};
//# sourceMappingURL=StoreControl.js.map
