bigbuffet-rw/app/soapbox/components/avatar_overlay.js

25 lines
671 B
JavaScript
Raw Normal View History

2020-03-27 13:59:38 -07:00
import React from 'react';
import ImmutablePropTypes from 'react-immutable-proptypes';
import StillImage from 'soapbox/components/still_image';
2020-03-27 13:59:38 -07:00
export default class AvatarOverlay extends React.PureComponent {
2020-03-27 13:59:38 -07:00
static propTypes = {
2022-03-23 10:14:42 -07:00
account: ImmutablePropTypes.record.isRequired,
2020-03-27 13:59:38 -07:00
friend: ImmutablePropTypes.map.isRequired,
};
render() {
const { account, friend } = this.props;
2020-03-27 13:59:38 -07:00
return (
<div className='account__avatar-overlay'>
<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>
);
}
}