import type { LinkAccountIdentity } from "@/types/profile"; /** * Photo-or-initial circle for another account (Linked Accounts, pending * requests, blocked requests). Same look as the signed-in user's avatar in * the side nav so the two read as the same kind of thing. */ export function AccountAvatar({ account, sizeClass, }: { account: LinkAccountIdentity; sizeClass: string; }) { if (account.avatar) { return ( // eslint-disable-next-line @next/next/no-img-element -- data-URL avatars, no image-optimization pipeline in this self-hosted app {account.name ); } const letter = (account.name?.trim()[0] ?? account.email[0] ?? "?").toUpperCase(); return ( {letter} ); }