var React = require('react'); var classNames = require('classnames'); var Radial = React.createClass({ render: function () { var percentage; if ((this.props.progress !== null && this.props.progress !== undefined) && !this.props.spin && !this.props.error) { percentage = (
); } else { percentage =
; } var classes = classNames({ 'radial-progress': true, 'radial-spinner': this.props.spin, 'radial-negative': this.props.error, 'radial-thick': this.props.thick || false, 'radial-gray': this.props.gray || false, 'radial-transparent': this.props.transparent || false }); return (
{percentage}
); } }); module.exports = Radial;