const html = require('choo/html'); module.exports = function(state, emit) { return html` ${state.translate('downloadButtonLabel')} `; function download(event) { event.preventDefault(); emit('download', state.fileInfo); } };