function Avatar
Avatar(unnamed 0: AvatarProps): React.JSX.Element

Renders the image from GET /api/users/:userId/avatar, scaled by the server to the size it is shown at, or the user's initial when they have none or it fails to load. An avatar added, changed or removed since the caller's data was fetched shows at once, through the user_updated messages that WSProvider puts in AvatarOverrideContext.

Parameters

unnamed 0: AvatarProps

Return Type

React.JSX.Element

Usage

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