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