mirror of
https://github.com/whippyshou/mastodon
synced 2024-12-11 21:29:09 +09:00
4b794e134d
* Migrate to newer version of Font Awesome * Add bot icon to bot avatars
24 lines
484 B
JavaScript
24 lines
484 B
JavaScript
import React from 'react';
|
|
import ImmutablePropTypes from 'react-immutable-proptypes';
|
|
import ImmutablePureComponent from 'react-immutable-pure-component';
|
|
|
|
export default class BotIcon extends ImmutablePureComponent {
|
|
|
|
static propTypes = {
|
|
account: ImmutablePropTypes.map.isRequired,
|
|
};
|
|
|
|
render () {
|
|
const { account } = this.props;
|
|
|
|
if (account.get('bot')) {
|
|
return (
|
|
<i className='fa fa-fw fa-robot bot-icon' />
|
|
);
|
|
}
|
|
|
|
return '';
|
|
}
|
|
|
|
}
|