import{z as n,d as a,j as e,J as c,cx as x,T as d}from"./main-D6SjkSWq.js";import{S as f}from"./Star-BwFAf0oe.js";function j({user:s,className:t,size:l,showProBadge:i}){const{trans:m}=n(),o=i&&s.is_pro,r=a(t,l,"object-cover bg-fg-base/4 h-full w-full",s.image?"block":"flex items-center justify-center");return e.jsxs("div",{className:a("relative isolate flex-shrink-0 overflow-hidden",l,t),children:[s.image?e.jsx("img",{className:r,draggable:!1,src:s.image,alt:m(c("Avatar for :name",{values:{name:s.name}}))}):e.jsx("span",{className:a(r,"overflow-hidden"),children:e.jsx(x,{className:"max-w-[60%] text-divider",size:"text-9xl"})}),o&&e.jsxs("div",{className:"absolute bottom-12 left-0 right-0 mx-auto flex w-max max-w-full items-center gap-6 rounded-full bg-black/60 px-8 py-4 text-sm text-white",color:"positive",children:[e.jsx("div",{className:"rounded-full bg-primary p-1",children:e.jsx(f,{className:"text-white",size:"sm"})}),e.jsx(d,{message:"PRO user"})]})]})}export{j as U};
