mirror of
https://git.kescher.at/CatCatNya/catstodon.git
synced 2024-11-25 00:28:07 +01:00
23 lines
485 B
JavaScript
23 lines
485 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='fas fa-fw fa-robot bot-icon' />
|
|
);
|
|
}
|
|
|
|
return '';
|
|
}
|
|
|
|
}
|