MCPcopy Create free account
hub / github.com/Linen-dev/linen.dev / Image

Function Image

apps/web/ui/Message/Link/Image/index.tsx:15–31  ·  view source on GitHub ↗
({ src, alt, onLoad, onClick, isBot }: Props)

Source from the content-addressed store, hash-verified

13}
14
15export 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}

Callers

nothing calls this directly

Calls 1

getWidthHeightFunction · 0.90

Tested by

no test coverage detected