1c6a539c0a
Co-authored-by: Pranav Raj S <pranav@chatwoot.com>
6 lines
222 B
JavaScript
6 lines
222 B
JavaScript
export const downloadCsvFile = (fileName, fileContent) => {
|
|
const link = document.createElement('a');
|
|
link.download = fileName;
|
|
link.href = `data:text/csv;charset=utf-8,` + encodeURI(fileContent);
|
|
link.click();
|
|
};
|