({
emote,
count,
}: {
emote: PatchyEmote;
count: number;
})
| 103 | // Tiny emotes floating out of the circle's top-right edge, a few in a row |
| 104 | // for the bigger reactions. Pointer-free and gone in about a second. |
| 105 | const Emotes = ({ |
| 106 | emote, |
| 107 | count, |
| 108 | }: { |
| 109 | emote: PatchyEmote; |
| 110 | count: number; |
| 111 | }): ReactElement => ( |
| 112 | <span |
| 113 | aria-hidden |
| 114 | className="pointer-events-none absolute -right-3 -top-3 flex" |
| 115 | > |
| 116 | {Array.from({ length: count }, (_, index) => ( |
| 117 | <span |
| 118 | key={index} |
| 119 | className="absolute opacity-0 motion-safe:animate-patchy-float motion-reduce:opacity-100" |
| 120 | style={{ |
| 121 | left: index * 5 - 2, |
| 122 | top: index % 2 ? 3 : 0, |
| 123 | animationDelay: `${index * 140}ms`, |
| 124 | }} |
| 125 | > |
| 126 | {emoteIcon(emote)} |
| 127 | </span> |
| 128 | ))} |
| 129 | </span> |
| 130 | ); |
| 131 | |
| 132 | interface PatchyRailIconProps { |
| 133 | face: PatchyFace; |
nothing calls this directly
no test coverage detected