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

Function Emotes

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

Source from the content-addressed store, hash-verified

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.
105const 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
132interface PatchyRailIconProps {
133 face: PatchyFace;

Callers

nothing calls this directly

Calls 1

emoteIconFunction · 0.85

Tested by

no test coverage detected