"use strict";

var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
exports.__esModule = true;
exports.SplitActionIconButton = void 0;
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
var _react = _interopRequireWildcard(require("react"));
var _wixUiIconsCommon = require("@wix/wix-ui-icons-common");
var _IconButton = _interopRequireDefault(require("../IconButton"));
var _SplitActionContext = require("./SplitActionContext");
var _SplitActionSt = require("./SplitAction.st.css.js");
var _excluded = ["children", "className"];
var _jsxFileName = "/home/builduser/work/57e038ea7326c1ec/packages/wix-design-system/dist/cjs/SplitAction/SplitActionIconButton.tsx";
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
var SplitActionIconButton = _ref => {
  var {
      children,
      className
    } = _ref,
    rest = (0, _objectWithoutProperties2.default)(_ref, _excluded);
  var shared = (0, _react.useContext)(_SplitActionContext.SplitActionContext);
  return /*#__PURE__*/_react.default.createElement(_IconButton.default, (0, _extends2.default)({}, shared, rest, {
    "data-split-action-button": true,
    className: (0, _SplitActionSt.st)(_SplitActionSt.classes.splitActionIconButton, className),
    ariaLabel: rest.ariaLabel,
    __self: void 0,
    __source: {
      fileName: _jsxFileName,
      lineNumber: 14,
      columnNumber: 5
    }
  }), children || /*#__PURE__*/_react.default.createElement(_wixUiIconsCommon.ChevronDown, {
    __self: void 0,
    __source: {
      fileName: _jsxFileName,
      lineNumber: 21,
      columnNumber: 20
    }
  }));
};
exports.SplitActionIconButton = SplitActionIconButton;
SplitActionIconButton.displayName = 'SplitActionIconButton';
//# sourceMappingURL=SplitActionIconButton.js.map