import i18n from '@config/i18n';
import {formatNumber} from '@shared/utils';

export const getReactionText = (reaction: {
  name: string;
  count: number;
}): string => {
  return `${reaction.name} ${formatNumber({
    value: reaction.count,
    lng: i18n.language,
    fractionDigits: 0,
    withSeparators: true,
  })}`;
};
