import React from 'react'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import { NavLink } from 'react-router-dom'; import { shortNumberFormat } from 'soapbox/utils/numbers'; import { injectIntl, defineMessages } from 'react-intl'; import classNames from 'classnames'; const messages = defineMessages({ followers: { id: 'account.followers', defaultMessage: 'Followers' }, follows: { id: 'account.follows', defaultMessage: 'Follows' }, }); export default @injectIntl class ProfileStats extends React.PureComponent { static propTypes = { intl: PropTypes.object.isRequired, account: ImmutablePropTypes.map.isRequired, className: PropTypes.string, } render() { const { intl, className } = this.props; const { account } = this.props; if (!account) { return null; } const acct = account.get('acct'); return (