const html = require('choo/html'); const radius = 73; const oRadius = radius + 10; const oDiameter = oRadius * 2; const circumference = 2 * Math.PI * radius; module.exports = function(progressRatio) { const dashOffset = (1 - progressRatio) * circumference; const percent = Math.floor(progressRatio * 100); const div = html`
${percent}%
`; return div; };