(entry: DownloadContent, format: ExportFormat)
| 137 | }; |
| 138 | |
| 139 | const downloadSingle = (entry: DownloadContent, format: ExportFormat) => { |
| 140 | const blob = toBlob(entry, format); |
| 141 | const url = window.URL.createObjectURL(blob); |
| 142 | const link = document.createElement("a"); |
| 143 | link.download = entry.filename; |
| 144 | link.href = url; |
| 145 | link.click(); |
| 146 | window.URL.revokeObjectURL(url); |
| 147 | }; |
| 148 | |
| 149 | const downloadZip = async ( |
| 150 | contents: DownloadContent[], |