mirror of
https://github.com/hanzoai/icons.git
synced 2026-09-24 16:59:52 +00:00
26 lines
580 B
TypeScript
26 lines
580 B
TypeScript
'use client';
|
|
|
|
import { memo } from 'react';
|
|
|
|
import IconAvatar, { type IconAvatarProps } from '@/features/IconAvatar';
|
|
|
|
import { AVATAR_BACKGROUND, AVATAR_COLOR, AVATAR_ICON_MULTIPLE, TITLE } from '../style';
|
|
import Mono from './Mono';
|
|
|
|
export type AvatarProps = Omit<IconAvatarProps, 'Icon'>;
|
|
|
|
const Avatar = memo<AvatarProps>(({ ...rest }) => {
|
|
return (
|
|
<IconAvatar
|
|
Icon={Mono}
|
|
aria-label={TITLE}
|
|
background={AVATAR_BACKGROUND}
|
|
color={AVATAR_COLOR}
|
|
iconMultiple={AVATAR_ICON_MULTIPLE}
|
|
{...rest}
|
|
/>
|
|
);
|
|
});
|
|
|
|
export default Avatar;
|