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.

24 lines
699 B

  1. import React from 'react';
  2. import Avatar from 'themes/glitch/components/avatar';
  3. import DisplayName from 'themes/glitch/components/display_name';
  4. import ImmutablePropTypes from 'react-immutable-proptypes';
  5. import ImmutablePureComponent from 'react-immutable-pure-component';
  6. export default 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 account={account} size={18} /></div>
  15. <DisplayName account={account} />
  16. </div>
  17. );
  18. }
  19. }