MCPcopy Create free account
hub / github.com/agegr/pi-web / getMessageImages

Function getMessageImages

components/MessageView.tsx:1306–1309  ·  view source on GitHub ↗
(content: CustomMessage["content"] | UserMessage["content"])

Source from the content-addressed store, hash-verified

1304}
1305
1306function getMessageImages(content: CustomMessage["content"] | UserMessage["content"]): ImageContent[] {
1307 if (typeof content === "string") return [];
1308 return content.filter((b): b is ImageContent => b.type === "image");
1309}
1310
1311function imageSource(img: ImageContent): string {
1312 const flat = img as unknown as { data?: string; mimeType?: string };

Callers 1

CustomMessageViewFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected