Function
Image
({
base64,
uint8Array: _uint8Array,
mediaType,
...props
}: ImageProps)
Source from the content-addressed store, hash-verified
| 8 | }; |
| 9 | |
| 10 | export 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
Tested by
no test coverage detected