import { PureComponent } from "react"; import { FormattedMessage, FormattedNumber } from "react-intl"; import { NavLink } from "react-router-dom"; import ImmutablePropTypes from "react-immutable-proptypes"; import { Icon } from "flavours/glitch/components/icon"; class ActionBar extends 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")) { const isRemote = account.get("acct") !== account.get("username"); return (
{isRemote ? ( ) : ( )}
); } let extraInfo = ""; if (account.get("acct") !== account.get("username")) { extraInfo = (
{" "}
); } return (
{extraInfo}
{ account.get("followers_count") < 0 ? "-" : }
); } } export default ActionBar;