- {result.result.map((item: ResultItem, index: number) => (
-
- {item.type === 'text' && item.text && (
-
- {item.text}
-
- )}
- {item.type === 'image' && item.data && item.mimeType && (
-
{
- console.error('Failed to load image: Invalid MIME-type encoded image data');
- e.currentTarget.style.display = 'none';
- }}
- />
- )}
-