import{aI as s,fg as c}from"./app-k0jcl5PQ.js";function m(e,r){return!!(e&&e.length&&r&&r.name)}function f(e){const[r,u]=s.useMemo(()=>c.getBuilder(),[]),a=u(r),[n,i]=s.useState([]);return s.useEffect(()=>{m(a,e)&&i(t=>t.length>0?t:[...a,{...e,active:!0}])},[[...a??[],e].map(t=>t==null?void 0:t.name).join("->")]),n}export{f as u};
//# sourceMappingURL=CtFw3Moj.chunk.js.map
