interface AvatarProps

Passed to Avatar from whatever data the caller has on the user, which may be stale: a live override from AvatarOverrideContext wins over hasAvatar and version.

Properties

userId: string
username: string
hasAvatar: boolean
optional
size: number

Sets the side, in pixels.

optional
version: number

Added to the URL so that a changed avatar isn't served from cache.

Usage

import { type AvatarProps } from "src/components/shared/Avatar.tsx";