const html = require('choo/html'); const titleSection = require('../../templates/title'); const downloadButton = require('../../templates/downloadButton'); const downloadedFiles = require('../../templates/uploadedFileList'); module.exports = function(state, emit) { const ownedFile = state.storage.getFileById(state.params.id); const trySendLink = html` ${state.translate('sendYourFilesLink')} `; const cancelButton = html` `; const bottomLink = state.transfer.state === 'downloading' ? cancelButton : trySendLink; return html`