MCPcopy Create free account
hub / github.com/dailydotdev/apps / Emotes

Function Emotes

packages/shared/src/features/patchy/PatchyRailIcon.tsx:139–164  ·  view source on GitHub ↗
({
  emote,
  count,
}: {
  emote: PatchyEmote;
  count: number;
})

Source from the content-addressed store, hash-verified

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.
139const 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
166interface PatchyRailIconProps {
167 face: PatchyFace;

Callers

nothing calls this directly

Calls 1

emoteIconFunction · 0.85

Tested by

no test coverage detected