const html = require('choo/html'); const assets = require('../../common/assets'); const { bytes } = require('../utils'); module.exports = function(state, pageAction) { const fileInfo = state.fileInfo; const size = fileInfo.size ? state.translate('downloadFileSize', { size: bytes(fileInfo.size) }) : ''; const title = fileInfo.name ? state.translate('downloadFileName', { filename: fileInfo.name }) : state.translate('downloadFileTitle'); const div = html`
${title} ${' ' + size}
${state.translate('downloadMessage')}
${state.translate('downloadAltText')} ${pageAction}
${state.translate('sendYourFilesLink')}
`; return div; };