in src/utils/download.js [1:14]
export function downloadString(text, fileName, fileType = 'text') {
const blob = new Blob([text], { type: fileType });
const a = document.createElement('a');
a.download = fileName;
a.href = URL.createObjectURL(blob);
a.dataset.downloadurl = [fileType, a.download, a.href].join(':');
a.style.display = 'none';
document.body.appendChild(a);
a.click();
document.body.removeChild(a);
setTimeout(() => {
URL.revokeObjectURL(a.href);
}, 1500);
}