const html = require('choo/html'); module.exports = function(selected, options, translate, changed) { let x = selected; return html` `; function choose(event) { const target = event.target; const value = +target.value; if (x !== value) { x = value; changed(value); } } };