mirror of
https://github.com/elyby/accounts-frontend.git
synced 2025-01-10 22:02:13 +05:30
8075192472
Improve auth's ChooseAccount visual behavior Rework the ComponentLoader component. Make it more stylable
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;
|