import React from 'react'; import classnames from 'classnames'; import { BorderColor, Display, AlignItems, JustifyContent, BackgroundColor, IconColor, TextColor, } from '../../../helpers/constants/design-system'; import { Icon } from '../icon'; import type { PolymorphicRef } from '../box'; import { AvatarBase, AvatarBaseProps } from '../avatar-base'; import type { AvatarIconComponent } from './avatar-icon.types'; import { AvatarIconProps, AvatarIconSize, avatarIconSizeToIconSize, } from './avatar-icon.types'; export const AvatarIcon: AvatarIconComponent = React.forwardRef( ( { size = AvatarIconSize.Md, color = TextColor.primaryDefault, backgroundColor = BackgroundColor.primaryMuted, className = '', iconProps, iconName, ...props }: AvatarIconProps, ref?: PolymorphicRef, ) => { const iconSize = avatarIconSizeToIconSize[size]; return ( )} > ); }, );