20 lines
441 B
React
20 lines
441 B
React
|
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">◄</a>
|
||
|
<span className="category-label">{itemLabel}</span>
|
||
|
</div>
|
||
|
);
|
||
|
|
||
|
}
|
||
|
|
||
|
});
|