import React from 'react'; import ImmutablePropTypes from 'react-immutable-proptypes'; import { NavLink } from 'react-router-dom'; import { FormattedMessage, FormattedNumber } from 'react-intl'; import { Icon } from 'flavours/glitch/components/icon'; class ActionBar extends React.PureComponent { static propTypes = { account: ImmutablePropTypes.map.isRequired, }; isStatusesPageActive = (match, location) => { if (!match) { return false; } return !location.pathname.match(/\/(followers|following)\/?$/); }; render () { const { account } = this.props; if (account.get('suspended')) { return (
); } let extraInfo = ''; if (account.get('acct') !== account.get('username')) { extraInfo = (
{' '}
); } return (
{extraInfo}
{ account.get('followers_count') < 0 ? '-' : }
); } } export default ActionBar;