2020-10-23 03:53:59 +05:30
|
|
|
import React, { ComponentType } from 'react';
|
|
|
|
import clsx from 'clsx';
|
|
|
|
|
|
|
|
import styles from './pseudoAvatar.scss';
|
|
|
|
|
|
|
|
interface Props {
|
|
|
|
index?: number;
|
2020-10-27 04:16:57 +05:30
|
|
|
deleted?: boolean;
|
2020-10-23 03:53:59 +05:30
|
|
|
className?: string;
|
|
|
|
}
|
|
|
|
|
2020-10-27 04:16:57 +05:30
|
|
|
const PseudoAvatar: ComponentType<Props> = ({ index = 0, deleted, className }) => (
|
|
|
|
<div
|
|
|
|
className={clsx(
|
|
|
|
styles.pseudoAvatarWrapper,
|
|
|
|
{
|
|
|
|
[styles.deletedPseudoAvatar]: deleted,
|
|
|
|
},
|
|
|
|
className,
|
|
|
|
)}
|
|
|
|
>
|
|
|
|
<div className={clsx(styles.pseudoAvatar, styles[`pseudoAvatar${index % 7}`])} />
|
|
|
|
{deleted ? <div className={styles.deletedIcon} /> : ''}
|
|
|
|
</div>
|
2020-10-23 03:53:59 +05:30
|
|
|
);
|
|
|
|
|
|
|
|
export default PseudoAvatar;
|