MCPcopy Create free account
hub / github.com/Mrinank-Bhowmick/python-beginner-projects / avatarFor

Function avatarFor

web/src/components/Home.tsx:28–31  ·  view source on GitHub ↗
(handle: string, size: number)

Source from the content-addressed store, hash-verified

26 contributors.map((c) => [c.handle.toLowerCase(), c.avatar]),
27);
28const avatarFor = (handle: string, size: number) => {
29 const url = AVATARS.get(handle.toLowerCase());
30 return url ? `${url}&s=${size}` : `https://github.com/${handle}.png`;
31};
32
33const ACCENT = "#ff7a59";
34const SORTS = ["default", "alpha", "short", "bookmarks"] as const;

Callers 1

HomeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected