2020-03-27 13:59:38 -07:00
|
|
|
import React from 'react';
|
|
|
|
import ImmutablePropTypes from 'react-immutable-proptypes';
|
2020-06-10 06:30:33 -07:00
|
|
|
import StillImage from 'soapbox/components/still_image';
|
2020-03-27 13:59:38 -07:00
|
|
|
|
2020-06-10 06:30:33 -07:00
|
|
|
export default class AvatarOverlay extends React.PureComponent {
|
2020-03-27 13:59:38 -07:00
|
|
|
|
|
|
|
static propTypes = {
|
|
|
|
account: ImmutablePropTypes.map.isRequired,
|
|
|
|
friend: ImmutablePropTypes.map.isRequired,
|
|
|
|
};
|
|
|
|
|
|
|
|
render() {
|
2020-06-10 06:30:33 -07:00
|
|
|
const { account, friend } = this.props;
|
2020-03-27 13:59:38 -07:00
|
|
|
|
|
|
|
return (
|
|
|
|
<div className='account__avatar-overlay'>
|
2020-06-10 06:30:33 -07:00
|
|
|
<StillImage src={account.get('avatar')} className='account__avatar-overlay-base' />
|
|
|
|
<StillImage src={friend.get('avatar')} className='account__avatar-overlay-overlay' />
|
2020-03-27 13:59:38 -07:00
|
|
|
</div>
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|