'use strict';

Object.defineProperty(exports, "__esModule", {
  value: true
});

var _react = require('react');

var _react2 = _interopRequireDefault(_react);

var _DragGroupTitleContainer = require('./DragGroupTitleContainer');

var _DragGroupTitleContainer2 = _interopRequireDefault(_DragGroupTitleContainer);

var _DragGroupTitleContent = require('./DragGroupTitleContent');

var _DragGroupTitleContent2 = _interopRequireDefault(_DragGroupTitleContent);

var _Icon = require('../../../Icon');

var _Icon2 = _interopRequireDefault(_Icon);

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

exports.default = function (_ref) {
  var children = _ref.children,
      expanded = _ref.expanded,
      onDelete = _ref.onDelete;
  return _react2.default.createElement(
    _DragGroupTitleContainer2.default,
    { expanded: expanded },
    _react2.default.createElement(
      _DragGroupTitleContent2.default,
      null,
      children
    ),
    _react2.default.createElement(_Icon2.default, { name: 'delete3', onClick: onDelete })
  );
};