const html = require('choo/html'); const percent = require('../../utils').percent; 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 percentComplete = percent(progressRatio); const div = html`
${percentComplete}
`; return div; };