import{jsx as e}from"react/jsx-runtime";import{storeApi as r}from"../Store/Store.js";import"../Store/utils.js";import{TemplatesTreeTemplate as t}from"../TemplatesTreeTemplate/TemplatesTreeTemplate.js";import{LoaderLogo as o}from"../../LoaderLogo/LoaderLogo.js";import{isFolder as s}from"../utils.js";import{TemplatesTreeFolder as m}from"../TemplatesTreeFolder/TemplatesTreeFolder.js";import{Action as a}from"../types.js";import p from"./TemplatesTree.scss.js";var i=function(){var i=r.useIsInitialized,l=r.useTree,T=(0,r.useHasCurrentAction)(0,a.ReloadList),d=i(),f=l(),n=f.tree,u=f.pathMap;return e("div",{className:p.root,children:!d||T?e(o,{className:p.loader}):n.map((function(r){return s(r)?e(m,{folder:r,level:0,pathMap:u},r.id):e(t,{template:r,level:0},r.id)}))})};export{i as TemplatesTree};
//# sourceMappingURL=TemplatesTree.js.map
