import ImmutablePureComponent from 'react-immutable-pure-component'; import PropTypes from 'prop-types'; import React from 'react'; import Permalink from '../../../../components/permalink'; export default class Contact extends ImmutablePureComponent { static propTypes = { account: PropTypes.object, }; static defaultProps = {}; constructor(props) { super(props); this.state = { account: this.props.account, }; } openConversationWithAccount = (accountId) => { dispatchEvent({ type: 'openConversation', target: accountId }); }; render() { const account = this.props.account; return (
avatar
{this.props.account.username}
); } }