MCPcopy Create free account
hub / github.com/MagicCube/agentara / Image

Function Image

web/src/components/ai-elements/image.tsx:10–25  ·  view source on GitHub ↗
({
  base64,
  uint8Array: _uint8Array,
  mediaType,
  ...props
}: ImageProps)

Source from the content-addressed store, hash-verified

8};
9
10export const Image = ({
11 base64,
12 uint8Array: _uint8Array,
13 mediaType,
14 ...props
15}: ImageProps) => (
16 <img
17 {...props}
18 alt={props.alt}
19 className={cn(
20 "h-auto max-w-full overflow-hidden rounded-md",
21 props.className
22 )}
23 src={`data:${mediaType};base64,${base64}`}
24 />
25);

Callers

nothing calls this directly

Calls 1

cnFunction · 0.90

Tested by

no test coverage detected