(url: string)
| 154 | } |
| 155 | |
| 156 | function mimeFromDataUrl(url: string): string | undefined { |
| 157 | const match = /^data:([^;,]+)/i.exec(url); |
| 158 | return match?.[1]; |
| 159 | } |
| 160 | |
| 161 | function openMediaPreview(media: ToolMedia): void { |
| 162 | if (media.kind !== 'image') return; |
no test coverage detected