window.downloadFileFromBase64 = (fileName, base64) => {
    const link = document.createElement('a');
    link.download = fileName;
    link.href = "data:text/csv;base64," + base64;
    document.body.appendChild(link);
    link.click();
    document.body.removeChild(link);
};
