"use strict";

var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
exports.__esModule = true;
exports.ActionControl = ActionControl;
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
var _react = _interopRequireDefault(require("react"));
var _ActionButton = require("./ActionButton");
var _ActionPopover = require("./ActionPopover");
var _jsxFileName = "/home/builduser/work/843658b9f44192f0/packages/cairo/dist/cjs/components/ActionControl/ActionControl.tsx";
function ActionControl(props) {
  const {
    actionItem: {
      subItems
    }
  } = props;
  return subItems ? /*#__PURE__*/_react.default.createElement(_ActionPopover.ActionPopover, (0, _extends2.default)({}, props, {
    __self: this,
    __source: {
      fileName: _jsxFileName,
      lineNumber: 18,
      columnNumber: 21
    }
  })) : /*#__PURE__*/_react.default.createElement(_ActionButton.ActionButton, (0, _extends2.default)({}, props, {
    __self: this,
    __source: {
      fileName: _jsxFileName,
      lineNumber: 18,
      columnNumber: 52
    }
  }));
}
//# sourceMappingURL=ActionControl.js.map