const html = require('choo/html'); module.exports = function(state, emit) { return html` `; function download(event) { event.preventDefault(); console.log("DOWNLOAD FIRE") emit('download', state.fileInfo); } };