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>
    );

  }

});
