1'use strict' 2var spin = require('./spin.js') 3var progressBar = require('./progress-bar.js') 4 5module.exports = { 6 activityIndicator: function (values, theme, width) { 7 if (values.spun == null) return 8 return spin(theme, values.spun) 9 }, 10 progressbar: function (values, theme, width) { 11 if (values.completed == null) return 12 return progressBar(theme, width, values.completed) 13 } 14} 15