import React from 'react'; import classnames from 'classnames'; import { AvatarBase, AvatarBaseProps } from '../avatar-base'; import { IconName, Icon, IconSize } from '../icon'; import { BorderColor, Display, AlignItems, JustifyContent, IconColor, } from '../../../helpers/constants/design-system'; import { useI18nContext } from '../../../hooks/useI18nContext'; import { PolymorphicRef } from '../box'; import { AvatarFaviconComponent, AvatarFaviconProps, AvatarFaviconSize, } from './avatar-favicon.types'; export const AvatarFavicon: AvatarFaviconComponent = React.forwardRef( ( { size = AvatarFaviconSize.Md, src, name = 'avatar-favicon', className = '', fallbackIconProps, borderColor = BorderColor.transparent, ...props }: AvatarFaviconProps, ref?: PolymorphicRef, ) => { const t = useI18nContext(); return ( ) }} > {src ? ( {t('logo', ) : ( )} ); }, );