import React from 'react' import PropTypes from 'prop-types' import { connect } from 'react-redux' import ImmutablePropTypes from 'react-immutable-proptypes' import ImmutablePureComponent from 'react-immutable-pure-component' import { makeGetAccount } from '../selectors' import Avatar from './avatar' import DisplayName from './display_name' class AutosuggestAccount extends ImmutablePureComponent { render () { const { account } = this.props return (
) } } const mapStateToProps = () => ({ account: makeGetAccount()(state, id), }) AutosuggestAccount.propTypes = { account: ImmutablePropTypes.map.isRequired, } export default connect(mapStateToProps)(AutosuggestAccount)