import React , { ReactElement } from 'react' ; import '@discord-message-components/core/dist/styles/discord-reaction.css' ; export type DiscordReactionProps = { active ? : boolean ; count ? : number ; image : string ; name ? : string ; } ; export default function DiscordReaction ( { active , count = 1 , image , name } ) { let classes = 'discord-reaction' ; if ( active ) classes += ' discord-reaction-active' ; return ( < div className = { classes } title = { name } > < img className = "discord-reaction-emoji" src = { image } alt = { name } / > < span className = "discord-reaction-count" > { count } < /span> < /div>); }