interface Props { login: string; /** Display name when available; falls back to `@login` rendering. */ name?: string; avatarUrl: string; htmlUrl: string; /** Optional small detail line (e.g. contribution count, sponsor tier). */ detail?: string; size?: number; } /** * Avatar + name + optional detail line. Used by both the sponsors wall * and the contributors wall so they read as one consistent card type. * The whole card is a single link to the person's GitHub profile. */ export function PersonCard({ login, name, avatarUrl, htmlUrl, detail, size = 56 }: Props) { const display = name?.trim() ? name : login; const subtitle = name ? `@${login}` : detail; const showDetailLine = name && detail; // both -> two lines return ( {/* biome-ignore lint/performance/noImgElement: GitHub avatars are CDN URLs already cache-friendly */} {login} {display} {subtitle && ( {subtitle} )} {showDetailLine && ( {detail} )} ); }