'use strict'; import React from 'react'; import ImmutablePropTypes from 'react-immutable-proptypes'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import { defineMessages, injectIntl, FormattedMessage } from 'react-intl'; import ImmutablePureComponent from 'react-immutable-pure-component'; import Icon from 'gabsocial/components/icon'; import VerificationBadge from 'gabsocial/components/verification_badge'; import Badge from 'gabsocial/components/badge'; import ProBadge from 'gabsocial/components/pro_badge'; import DonorBadge from 'gabsocial/components/donor_badge'; import InvestorBadge from 'gabsocial/components/investor_badge'; import { List as ImmutableList } from 'immutable'; import { acctFull } from 'gabsocial/utils/accounts'; const messages = defineMessages({ linkVerifiedOn: { id: 'account.link_verified_on', defaultMessage: 'Ownership of this link was checked on {date}' }, account_locked: { id: 'account.locked_info', defaultMessage: 'This account privacy status is set to locked. The owner manually reviews who can follow them.' }, }); const dateFormatOptions = { month: 'short', day: 'numeric', year: 'numeric', hour12: false, hour: '2-digit', minute: '2-digit', }; class ProfileInfoPanel extends ImmutablePureComponent { static propTypes = { account: ImmutablePropTypes.map, identity_proofs: ImmutablePropTypes.list, intl: PropTypes.object.isRequired, username: PropTypes.string, }; render() { const { account, intl, identity_proofs, username } = this.props; if (!account) { return (