const html = require('choo/html'); module.exports = function() { return function(state, emit, close) { const archive = state.fileInfo; return html`

${state.translate('downloadConfirmTitle')}

${state.translate('downloadConfirmDescription')}

${state.translate('reportFile')}
`; function toggleDownloadEnabled(event) { event.stopPropagation(); const checked = event.target.checked; const btn = document.getElementById('download-btn'); btn.disabled = !checked; } function download(event) { event.preventDefault(); close(); event.target.disabled = true; emit('download', archive); } }; };