import{aT as A}from"./vendor-mui-core-CDEc-eG6.js";import{d as p,g}from"./vendor-react-DX7tU9aY.js";import{D as R}from"./vendor-hooks-Ca2cSNuD.js";import{r as b}from"./useAsync-10WR8h3k.js";const n={success:"#3ab39d",error:"#D0021B"},u="10px",z=A.div`
  display: inline-block;
  min-width: ${r=>r.size||u};
  min-height: ${r=>r.size||u};
  background-color: ${r=>n[r.color]||r.color||n.success};
  border-radius: 100%;
`;var t={},c;function D(){if(c)return t;c=1,Object.defineProperty(t,"__esModule",{value:!0});var r=R,s=p(),y=r.__importDefault(b()),l=function(d,e){e===void 0&&(e=[]);var a=s.useState(0),f=a[0],_=a[1],o=y.default(d,r.__spreadArrays(e,[f])),i=o.loading,m=s.useCallback(function(){i||_(function(v){return v+1})},r.__spreadArrays(e,[i]));return r.__assign(r.__assign({},o),{retry:m})};return t.default=l,t}var $=D();const U=g($);export{z as D,U as u};
