var React = require('react');
//var FontIcon = require('./font-icon');
var MenuItem = React.createClass({
propTypes: {
index: React.PropTypes.number.isRequired,
iconClassName: React.PropTypes.string,
iconRightClassName: React.PropTypes.string,
attribute: React.PropTypes.string,
number: React.PropTypes.string,
data: React.PropTypes.string,
toggle: React.PropTypes.bool,
onTouchTap: React.PropTypes.func,
onClick: React.PropTypes.func,
onToggle: React.PropTypes.func,
selected: React.PropTypes.bool
},
getDefaultProps: function() {
return {
toggle: false
};
},
render: function() {
var classes = 'mui-menu-item';
if(this.props.selected) {
classes += ' mui-is-selected';
}
if(this.props.currentSelected) {
classes += ' mui-is-current-selected';
}
var icon;
var data;
var iconRight;
var attribute;
var number;
if (this.props.iconClassName) icon =