The code powering m.abunchtell.com https://m.abunchtell.com
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
 
 
 
 

24 行
485 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='fas fa-fw fa-robot bot-icon' />
  13. );
  14. }
  15. return '';
  16. }
  17. }