You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

26 lines
760 B

  1. import React from 'react';
  2. import Avatar from '../../../components/avatar';
  3. import DisplayName from '../../../components/display_name';
  4. import ImmutablePropTypes from 'react-immutable-proptypes';
  5. import ImmutablePureComponent from 'react-immutable-pure-component';
  6. class AutosuggestAccount extends ImmutablePureComponent {
  7. static propTypes = {
  8. account: ImmutablePropTypes.map.isRequired
  9. };
  10. render () {
  11. const { account } = this.props;
  12. return (
  13. <div className='autosuggest-account'>
  14. <div className='autosuggest-account-icon'><Avatar src={account.get('avatar')} staticSrc={account.get('avatar_static')} size={18} /></div>
  15. <DisplayName account={account} />
  16. </div>
  17. );
  18. }
  19. }
  20. export default AutosuggestAccount;