(url: string, type: string)
| 293 | }; |
| 294 | |
| 295 | const handleDownloadFromHistory = (url: string, type: string) => { |
| 296 | const fileExtension = type.includes('video') ? 'mp4' : (url.split(';')[0].split('/')[1] || 'png'); |
| 297 | const filename = `${type}-${Date.now()}.${fileExtension}`; |
| 298 | downloadImage(url, filename); |
| 299 | }; |
| 300 | |
| 301 | const handleBackToSelection = () => { |
| 302 | setSelectedTransformation(null); |
nothing calls this directly
no test coverage detected