code: function Channel(props) {
    var canRemove = _lodash2.default.isFunction(props.remove);
    var className = (0, _classnames2.default)(_style2.default.channel, _defineProperty({}, _style2.default.selected_channel, props.selected));
  
    var select = function select() {
      if (_lodash2.default.isFunction(props.select)) {
        props.select(props.data);
      }
    };
  
    var itemProps = {
      className: className,
      onClick: select,
      selected: props.selected,
      to: props.to
    };
  
    return _react2.default.createElement(
      _common.NavItem,
      itemProps,
      _react2.default.createElement(
        'span',
        null,
        props.data.name
      ),
      _react2.default.createElement(
        'span',
        { className: 'actions' },
        canRemove ? removeButton(props.remove) : null
      )
    );
  }
docs: TODO render channel actions