| | |
| | | const AppIcon: FC<AppIconProps> = ({ |
| | | size = 'medium', |
| | | rounded = false, |
| | | iconType, |
| | | icon, |
| | | background, |
| | | imageUrl, |
| | |
| | | innerIcon, |
| | | onClick, |
| | | }) => { |
| | | const isValidImageIcon = iconType === 'image' && imageUrl |
| | | const isValidImageIcon = true |
| | | |
| | | return <span |
| | | className={classNames(appIconVariants({ size, rounded }), className)} |
| | |
| | | > |
| | | {isValidImageIcon |
| | | // eslint-disable-next-line @next/next/no-img-element |
| | | ? <img src={imageUrl} className="w-full h-full" alt="app icon" /> |
| | | ? <img src={imageUrl || ''} className="w-full h-full" alt="app icon" /> |
| | | : (innerIcon || ((icon && icon !== '') ? <em-emoji id={icon} /> : <em-emoji id='🤖' />)) |
| | | } |
| | | </span> |