import React from 'react' import PropTypes from 'prop-types' import { defineMessages, injectIntl } from 'react-intl' import ImmutablePureComponent from 'react-immutable-pure-component' import ImmutablePropTypes from 'react-immutable-proptypes' import { me } from '../../initial_state' import { shortNumberFormat } from '../../utils/numbers' import PanelLayout from './panel_layout' import UserStat from '../user_stat' import Dummy from '../dummy' import ProfileStatsPanelPlaceholder from '../placeholder/profile_stats_panel_placeholder' import ResponsiveClassesComponent from '../../features/ui/util/responsive_classes_component' class ProfileStatsPanel extends ImmutablePureComponent { render() { const { intl, account, noPanel } = this.props const Wrapper = noPanel ? Dummy : PanelLayout return ( { !account && !noPanel && } { !!account && } ) } } const messages = defineMessages({ gabs: { id: 'account.gabs', defaultMessage: 'Gabs' }, followers: { id: 'account.followers', defaultMessage: 'Followers' }, follows: { id: 'account.follows', defaultMessage: 'Following' }, likes: { id: 'likes', defaultMessage: 'Likes' }, }) ProfileStatsPanel.propTypes = { account: ImmutablePropTypes.map, intl: PropTypes.object.isRequired, noPanel: PropTypes.bool, } export default injectIntl(ProfileStatsPanel)