1
0
mirror of synced 2024-12-05 02:57:55 +01:00
bemaniutils/bemani/frontend/static/components/nav.react.js

27 lines
731 B
JavaScript
Raw Normal View History

/** @jsx React.DOM */
var Nav = createReactClass({
render: function() {
var title = (
<>
{this.props.title}
{this.props.showAlert ?
<span className="alert">{ "\u26a0" }</span> :
null
}
</>
);
return (
<Button
className={classNames("nav", {"active": this.props.active}, this.props.title)}
disabled={this.props.disabled}
style={this.props.style}
onClick={function(event) {
this.props.onClick(event);
}.bind(this)}
title={title}
/>
);
},
});