import{r as t,aY as i,O as v,P as r}from"./index-ChhimAZ-.js";function f(l,o){const e=t(!1),s=t(),u=i(`useListResources(${o})`,Array.isArray),a=v(u.value??[]);async function c(){e.value=!0,s.value=void 0;try{a.value=await l.sendListResourcesRequest(o),u.value=a.value}catch(n){s.value=n,a.value=[]}finally{e.value=!1}}return{data:r(a),isLoading:r(e),error:r(s),load:c}}export{f as u};
