import ImmutablePropTypes from 'react-immutable-proptypes' import ImmutablePureComponent from 'react-immutable-pure-component' import { shortNumberFormat } from '../../utils/numbers' import PopoverLayout from './popover_layout' import Avatar from '../avatar' import Button from '../button' import DisplayName from '../display_name' import Text from '../text' export default class UserInfoPopover extends ImmutablePureComponent { static propTypes = { account: ImmutablePropTypes.map.isRequired, } render() { const { account } = this.props const content = !account ? null : { __html: account.get('note_emojified') } return (
{shortNumberFormat(account.get('following_count'))} Following
{shortNumberFormat(account.get('followers_count'))} Followers
) } }