pitaya-launcher/js/components/category-header.jsx

20 lines
441 B
React
Raw Normal View History

2015-08-27 18:24:29 +02:00
var React = require('react');
module.exports = React.createClass({
render: function() {
var classes = 'category-header' + (this.props.currentItem ? 'visible' : '');
var itemLabel = this.props.currentItem ? this.props.currentItem.label : '';
return (
<div className={classes}>
<a href="#" className="goback">&#9668;</a>
<span className="category-label">{itemLabel}</span>
</div>
);
}
});