({ src, alt, onLoad, onClick, isBot }: Props)
| 13 | } |
| 14 | |
| 15 | export default function Image({ src, alt, onLoad, onClick, isBot }: Props) { |
| 16 | const { width, height } = getWidthHeight(src); |
| 17 | return ( |
| 18 | <Component |
| 19 | className={classNames(styles.image, { |
| 20 | [styles.static]: width === 200 && height === 200, |
| 21 | })} |
| 22 | width={width} |
| 23 | height={height} |
| 24 | src={src} |
| 25 | alt={alt} |
| 26 | onLoad={onLoad} |
| 27 | onClick={onClick} |
| 28 | isBot={isBot} |
| 29 | /> |
| 30 | ); |
| 31 | } |
nothing calls this directly
no test coverage detected