/** @jsx React.DOM */
var SelectInt = createReactClass({
__renderChoices: function() {
if (this.props.choices instanceof Array) {
// Given to us as an array, the index of the value is the selected value
return (
this.props.choices.map(function(choice, index) {
if (choice == null) { return null; }
return ;
}.bind(this))
);
} else {
// Assume given as an object, the keys are the values and the values are the displays
return (
Object.keys(this.props.choices).map(function(choice) {
return ;
}.bind(this))
);
}
},
render: function() {
return (
);
},
});