import Button from "@moduletrace/twui/layout/Button"; import Span from "@moduletrace/twui/layout/Span"; import type { BotMessageReaction } from "@/src/types"; type Props = BotMessageReaction & { /** * Left out on the user's own messages: the bot's reactions there only * show. */ onToggle?: () => void; }; /** * One emoji reaction under a message: its count, highlighted when the * user gave it. Clicking takes it back or adds it. */ export default function MessageReactionChip({ emoji, count, mine, onToggle, }: Props) { if (!onToggle) { return ( {emoji} {count > 1 ? ( {count} ) : null} ); } return ( ); }