2019-04-21 19:44:30 +09:00
|
|
|
import ImmutablePropTypes from 'react-immutable-proptypes';
|
|
|
|
import ImmutablePureComponent from 'react-immutable-pure-component';
|
|
|
|
|
2023-11-15 20:01:51 +09:00
|
|
|
import { Avatar } from '../../../components/avatar';
|
|
|
|
import { DisplayName } from '../../../components/display_name';
|
2023-05-28 23:38:10 +09:00
|
|
|
|
2019-04-21 19:44:30 +09:00
|
|
|
export default class AutosuggestAccount extends ImmutablePureComponent {
|
|
|
|
|
|
|
|
static propTypes = {
|
2023-11-04 00:00:03 +09:00
|
|
|
account: ImmutablePropTypes.record.isRequired,
|
2019-04-21 19:44:30 +09:00
|
|
|
};
|
|
|
|
|
|
|
|
render () {
|
|
|
|
const { account } = this.props;
|
|
|
|
|
|
|
|
return (
|
2023-11-16 05:58:43 +09:00
|
|
|
<div className='autosuggest-account' title={account.get('acct')}>
|
2024-02-12 05:55:36 +09:00
|
|
|
<div className='autosuggest-account-icon'><Avatar account={account} size={18} /></div>
|
2019-04-21 19:44:30 +09:00
|
|
|
<DisplayName account={account} inline />
|
|
|
|
</div>
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|