import { defineMessages, injectIntl } from 'react-intl' import ImmutablePureComponent from 'react-immutable-pure-component' import ImmutablePropTypes from 'react-immutable-proptypes' import { me, favouritesCount } from '../../initial_state' import { shortNumberFormat } from '../../utils/numbers' import PanelLayout from './panel_layout' import UserStat from '../user_stat' const messages = defineMessages({ gabs: { id: 'account.gabs', defaultMessage: 'Gabs' }, followers: { id: 'account.followers', defaultMessage: 'Followers' }, follows: { id: 'account.follows', defaultMessage: 'Follows' }, favorites: { id: 'navigation_bar.favorites', defaultMessage: 'Favorites' }, }) export default @injectIntl class ProfileStatsPanel extends ImmutablePureComponent { static propTypes = { account: ImmutablePropTypes.list.isRequired, intl: PropTypes.object.isRequired, } render() { const { intl, account } = this.props if (!account) return null return ( { !!account &&
{ account.get('id') === me && }
}
) } }