mirror of
https://github.com/elyby/accounts-frontend.git
synced 2024-12-05 04:59:26 +05:30
16 lines
385 B
TypeScript
16 lines
385 B
TypeScript
|
import React, { ComponentType } from 'react';
|
||
|
import clsx from 'clsx';
|
||
|
|
||
|
import styles from './pseudoAvatar.scss';
|
||
|
|
||
|
interface Props {
|
||
|
index?: number;
|
||
|
className?: string;
|
||
|
}
|
||
|
|
||
|
const PseudoAvatar: ComponentType<Props> = ({ index = 0, className }) => (
|
||
|
<div className={clsx(styles.pseudoAvatar, styles[`pseudoAvatar${index % 7}`], className)} />
|
||
|
);
|
||
|
|
||
|
export default PseudoAvatar;
|