const html = require('choo/html'); const progress = require('./progress'); const { fadeOut } = require('../utils'); const fxPromo = require('./fxPromo'); module.exports = function(state, emit) { const div = html`
${state.translate( 'downloadFinish' )}
${progress(1)}
${state.translate('sendYourFilesLink')}
${state.promo === 'body' ? fxPromo(state, emit) : ''}
`; async function sendNew(e) { e.preventDefault(); await fadeOut('download'); emit('pushState', '/'); } return div; };