import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
import PropTypes from 'prop-types';
import * as React from 'react';
import styled from 'styled-components';
var Wrapper =
/*#__PURE__*/
styled.div.withConfig({
  componentId: "sc-25q0x6-0"
})(["\n  display: flex;\n  flex-direction: row;\n  justify-content: center;\n  align-items: center;\n\n  & *:not(:last-child) {\n    margin-right: 0.4rem;\n  }\n\n  & > :first-child {\n    border-top-right-radius: initial;\n    border-bottom-right-radius: initial;\n  }\n\n  & > :last-child {\n    border-top-left-radius: initial;\n    border-bottom-left-radius: initial;\n  }\n\n  & > :not(:first-child):not(:last-child) {\n    border-top-right-radius: initial;\n    border-bottom-right-radius: initial;\n    border-top-left-radius: initial;\n    border-bottom-left-radius: initial;\n  }\n"]);

var ButtonGroup = function ButtonGroup(_ref) {
  var children = _ref.children,
      rest = _objectWithoutProperties(_ref, ["children"]);

  return React.createElement(Wrapper, rest, children);
};

ButtonGroup.propTypes = process.env.NODE_ENV !== "production" ? {
  children: PropTypes.node
} : {};
export default ButtonGroup;