import React from 'react';
import ImmutablePropTypes from 'react-immutable-proptypes';
import { FormattedNumber } from 'react-intl';
import emojify from 'soapbox/features/emoji/emoji';
import { reduceEmoji } from 'soapbox/utils/emoji_reacts';
import SoapboxPropTypes from 'soapbox/utils/soapbox_prop_types';
import { Link } from 'react-router-dom';
import Icon from 'soapbox/components/icon';
export class StatusInteractionBar extends React.Component {
static propTypes = {
status: ImmutablePropTypes.map,
me: SoapboxPropTypes.me,
}
getNormalizedReacts = () => {
const { status } = this.props;
return reduceEmoji(
status.getIn(['pleroma', 'emoji_reactions']),
status.get('favourites_count'),
status.get('favourited'),
).reverse();
}
getRepost = () => {
const { status } = this.props;
if (status.get('reblogs_count')) {
return (