import { ICON_ASSETS } from '../../assets'; import { useGetStyleProps } from '../../hook'; import { usePaletteContext, useThemeContext } from '../../theme'; import { DefaultIconImage, DefaultIconImageProps } from '../../ui/Image'; export type ThumbImageProps = DefaultIconImageProps; /** * ThumbImage component. * * If the url fails to load, the default avatar is displayed. * * @param props {@link DefaultIconImageProps} * @returns React.ReactElement */ export function ThumbImage(props: ThumbImageProps) { const { size, style, localIcon, ...others } = props; const { cornerRadius: corner } = useThemeContext(); const { cornerRadius } = usePaletteContext(); const { getBorderRadius } = useGetStyleProps(); return ( ); }