import { forwardRef } from 'react'; import { AvatarProps } from './Avatar.type'; import { StyledAvatar, StyledAvatarImage } from './Avatar.style'; import UserCircle from './user-circle.svg'; export const Avatar = forwardRef((props, ref) => { const { src, name, size = '32px', disabled = false, ...otherProps } = props; return ( (e.currentTarget.src = UserCircle)} /> ); });