Skip to main content

AvatarWithFlairs

Wraps Avatar and fetches /api/user-subscriptions?userId= when showFlairs and userId are set (background request header skips global loader).

Props​

PropDefault
seed, sizePassed to Avatar
userIdRequired for fetch
maxFlairs3 (placed on four corners cyclically)
flairSize'sm'
enableTooltip / tooltipScaleOptional enlarged avatar tooltip

Assigns each subscription a corner from positions array rotation.


Sources: src/app/components/subscription-badges/AvatarWithFlairs.tsx, src/app/components/avatar/Avatar.tsx