MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / Avatar

Function Avatar

packages/react/src/multiplayer/shell.tsx:266–275  ·  view source on GitHub ↗
(props: { url: string | null; name: string | null; email: string })

Source from the content-addressed store, hash-verified

264}
265
266function Avatar(props: { url: string | null; name: string | null; email: string }) {
267 if (props.url) {
268 return <img src={props.url} alt="" className="size-7 shrink-0 rounded-full" />;
269 }
270 return (
271 <div className="flex size-7 shrink-0 items-center justify-center rounded-full bg-primary/10 text-xs font-semibold text-primary">
272 {initialsFor(props.name, props.email)}
273 </div>
274 );
275}
276
277// ── UserFooter ──────────────────────────────────────────────────────────
278

Callers

nothing calls this directly

Calls 1

initialsForFunction · 0.85

Tested by

no test coverage detected