2016-11-12 14:33:21 +01:00
|
|
|
import Avatar from '../../../components/avatar';
|
|
|
|
import DisplayName from '../../../components/display_name';
|
2017-03-22 17:36:34 +01:00
|
|
|
import ImmutablePropTypes from 'react-immutable-proptypes';
|
2016-11-12 14:33:21 +01:00
|
|
|
|
|
|
|
const AutosuggestAccount = ({ account }) => (
|
2017-03-22 17:36:34 +01:00
|
|
|
<div style={{ overflow: 'hidden' }} className='autosuggest-account'>
|
2017-04-11 00:38:58 +02:00
|
|
|
<div style={{ float: 'left', marginRight: '5px' }}><Avatar src={account.get('avatar')} staticSrc={status.getIn(['account', 'avatar_static'])} size={18} /></div>
|
2016-11-12 14:33:21 +01:00
|
|
|
<DisplayName account={account} />
|
|
|
|
</div>
|
|
|
|
);
|
|
|
|
|
2017-03-22 17:36:34 +01:00
|
|
|
AutosuggestAccount.propTypes = {
|
|
|
|
account: ImmutablePropTypes.map.isRequired
|
|
|
|
};
|
|
|
|
|
2016-11-12 14:33:21 +01:00
|
|
|
export default AutosuggestAccount;
|