import{r as e,_ as n,m as o}from"./index-DR3HTfO6.js";import{u as v}from"./useAsync-uRJFvzK5.js";var p=function(u,t){t===void 0&&(t=[]);var r=e.useState(0),i=r[0],c=r[1],a=v(u,n(t,[i])),s=a.loading,f=e.useCallback(function(){s||c(function(m){return m+1})},n(t,[s]));return o(o({},a),{retry:f})};export{p as u};
