({
emote,
count,
}: {
emote: PatchyEmote;
count: number;
})
| 137 | // Tiny emotes floating out of the circle's top-right edge, a few in a row |
| 138 | // for the bigger reactions. Pointer-free and gone in about a second. |
| 139 | const Emotes = ({ |
| 140 | emote, |
| 141 | count, |
| 142 | }: { |
| 143 | emote: PatchyEmote; |
| 144 | count: number; |
| 145 | }): ReactElement => ( |
| 146 | <span |
| 147 | aria-hidden |
| 148 | className="pointer-events-none absolute -right-3 -top-3 flex" |
| 149 | > |
| 150 | {Array.from({ length: count }, (_, index) => ( |
| 151 | <span |
| 152 | key={index} |
| 153 | className="absolute opacity-0 motion-safe:animate-patchy-float motion-reduce:opacity-100" |
| 154 | style={{ |
| 155 | left: index * 5 - 2, |
| 156 | top: index % 2 ? 3 : 0, |
| 157 | animationDelay: `${index * 140}ms`, |
| 158 | }} |
| 159 | > |
| 160 | {emoteIcon(emote)} |
| 161 | </span> |
| 162 | ))} |
| 163 | </span> |
| 164 | ); |
| 165 | |
| 166 | interface PatchyRailIconProps { |
| 167 | face: PatchyFace; |
nothing calls this directly
no test coverage detected