(props: { url: string | null; name: string | null; email: string })
| 264 | } |
| 265 | |
| 266 | function 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 |
nothing calls this directly
no test coverage detected