import{aD as e,j as a}from"./vendor-ClLR6ncd.js";import{A as n}from"./Avatar-FLlqk0a0.js";function i(t){return t?t.split(" ").filter(Boolean).slice(0,2).map(r=>r.slice(0,1)):""}const c="#BDBDBD";function f({username:t,bgcolor:o}){const r=o||c,s=e();return a.jsx(n,{sx:{bgcolor:r,textTransform:"uppercase",color:s.palette.getContrastText(r)},children:i(t)})}export{f as U,c as d};
