2022-05-28 09:02:04 -07:00
|
|
|
import React from 'react';
|
|
|
|
|
2022-11-15 08:00:49 -08:00
|
|
|
import StillImage from 'soapbox/components/still-image';
|
2022-05-28 09:02:04 -07:00
|
|
|
|
|
|
|
import type { Account as AccountEntity } from 'soapbox/types/entities';
|
|
|
|
|
|
|
|
interface IAvatarOverlay {
|
|
|
|
account: AccountEntity,
|
|
|
|
friend: AccountEntity,
|
|
|
|
}
|
|
|
|
|
|
|
|
const AvatarOverlay: React.FC<IAvatarOverlay> = ({ account, friend }) => (
|
|
|
|
<div className='account__avatar-overlay'>
|
|
|
|
<StillImage src={account.avatar} className='account__avatar-overlay-base' />
|
|
|
|
<StillImage src={friend.avatar} className='account__avatar-overlay-overlay' />
|
|
|
|
</div>
|
|
|
|
);
|
|
|
|
|
|
|
|
export default AvatarOverlay;
|