'use strict';

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

var _react = require('react');

var _react2 = _interopRequireDefault(_react);

var _styledComponents = require('styled-components');

var _styledComponents2 = _interopRequireDefault(_styledComponents);

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

function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }

var BaseButtonGroup = _styledComponents2.default.div.withConfig({
  displayName: 'ButtonGroup__BaseButtonGroup'
})(['display:flex;flex-direction:row;justify-content:center;align-items:center;margin:0 5px;& > *{display:inline-flex!important;}&:first-child{border-top-right-radius:0!important;border-bottom-right-radius:0!important;}&:last-child{border-top-left-radius:0!important;border-bottom-left-radius:0!important;}&:not(:first-child):not(:last-child){border-top-right-radius:0!important;border-bottom-right-radius:0!important;border-top-left-radius:0!important;border-bottom-left-radius:0!important;}']);
var ButtonGroup = function ButtonGroup(props) {
  var children = props.children,
      rest = _objectWithoutProperties(props, ['children']);

  return _react2.default.createElement(
    BaseButtonGroup,
    rest,
    children
  );
};

exports.default = ButtonGroup;