/** * @jsx React.DOM */ /*jshint quotmark:false */ /*jshint white:false */ /*jshint trailing:false */ /*jshint newcap:false */ /*global React, ALL_TODOS, ACTIVE_TODOS, Utils, COMPLETED_TODOS */ (function (window) { 'use strict'; window.TodoFooter = React.createClass({ render: function () { var activeTodoWord = Utils.pluralize(this.props.count, 'item'); var clearButton = null; if (this.props.completedCount > 0) { clearButton = ( ); } var show = { ALL_TODOS: '', ACTIVE_TODOS: '', COMPLETED_TODOS: '' }; show[this.props.nowShowing] = 'selected'; return ( ); } }); })(window);