"use strict";

var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.ControlsButtonGroup = ControlsButtonGroup;
exports.default = void 0;

var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/objectWithoutProperties"));

var _react = _interopRequireDefault(require("react"));

var _core = require("@material-ui/core");

var _styles = require("@material-ui/core/styles");

var useStyles = function useStyles(props) {
  return (0, _styles.makeStyles)(function (theme) {
    return {
      growItem: {
        flexGrow: 1
      }
    };
  });
};

function ControlsButtonGroup(_ref) {
  var children = _ref.children,
      props = (0, _objectWithoutProperties2.default)(_ref, ["children"]);
  var classes = useStyles(props)();
  return /*#__PURE__*/_react.default.createElement(_core.Grid, {
    container: true,
    spacing: 1
  }, props.collapsed ? props.collapsedButton : /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_core.Grid, {
    item: true
  }, props.expendedButtons[0]), /*#__PURE__*/_react.default.createElement(_core.Grid, {
    item: true,
    className: classes.growItem
  }, props.expendedButtons[1]), /*#__PURE__*/_react.default.createElement(_core.Grid, {
    item: true
  }, props.expendedButtons[2])));
}

var _default = ControlsButtonGroup;
exports.default = _default;