import"./chunk-QTnfLwEv.js";import{i as e,o as t,r as n,t as r}from"./jsx-runtime-DHSfUA5-.js";import{t as i}from"./user-round-DuMTTg1k.js";import{t as a}from"./useProfileAvatar-DM2sovVl.js";t();var o=r();function s({size:t,className:r,testId:s,imageTestId:c}){let{url:l,handleImageError:u}=a(),d={width:t,height:t},f=n(e.UserAvatar.Root,r);return l?(0,o.jsx)(`img`,{className:n(f,e.UserAvatar.ImageFit),"data-test-id":c,src:l,alt:``,style:d,onError:u}):(0,o.jsx)(`span`,{className:f,"data-test-id":s,style:d,children:(0,o.jsx)(i,{size:Math.round(t*.58),strokeWidth:1.8})})}export{s as t};
//# sourceMappingURL=UserAvatar-H2tjkpPO.js.map