const html = require('choo/html'); const downloadButton = require('../../templates/downloadButton'); const downloadedFiles = require('../../templates/uploadedFileList'); const split = require('../split'); module.exports = function(state, emit) { const fileInfo = state.fileInfo; const trySendLink = html` ${state.translate('sendYourFilesLink')} `; const cancelButton = html` `; const bottomLink = state.transfer.state === 'downloading' ? cancelButton : trySendLink; return split( state, emit, downloadedFiles(fileInfo, state, emit), html`