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.

23 lines
484 B

  1. import React from 'react';
  2. import ImmutablePropTypes from 'react-immutable-proptypes';
  3. import ImmutablePureComponent from 'react-immutable-pure-component';
  4. export default class BotIcon extends ImmutablePureComponent {
  5. static propTypes = {
  6. account: ImmutablePropTypes.map.isRequired,
  7. };
  8. render () {
  9. const { account } = this.props;
  10. if (account.get('bot')) {
  11. return (
  12. <i className='fa fa-fw fa-robot bot-icon' />
  13. );
  14. }
  15. return '';
  16. }
  17. }