export function downloadFile ( fileContent , fileName ) { const a = document . createElement ( 'a' ) ; a . href = URL . createObjectURL ( fileContent ) ; a . download = fileName ; a . click ( ) ; setTimeout ( ( ) => URL . revokeObjectURL ( a . href ) , 1000 ) ; }