import{u}from"./useQuery-DB4moXtm.js";import{i as s,x as i}from"./index-CXwCk-SR.js";function o(e,n){const a=u({queryKey:["layer-instances",e,n],queryFn:()=>i.layer.instances(e.value,n.value??""),enabled:s(()=>e.value.length>0&&!!n.value),staleTime:3e4});return{data:s(()=>a.data.value??null),instances:s(()=>{var t;return((t=a.data.value)==null?void 0:t.instances)??[]}),isLoading:a.isLoading,isFetching:a.isFetching,error:a.error}}export{o as u};
