"use strict";

var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
exports.__esModule = true;
exports.DisabledActionCellMenu = DisabledActionCellMenu;
var _react = _interopRequireDefault(require("react"));
var _designSystem = require("@wix/design-system");
var _wixUiIconsCommon = require("@wix/wix-ui-icons-common");
var _DisabledTooltip = require("../DisabledTooltip");
var _jsxFileName = "/home/builduser/work/843658b9f44192f0/packages/cairo/dist/cjs/components/ActionCell/DisabledActionCellMenu.tsx";
function DisabledActionCellMenu({
  dataHook,
  tooltipContent,
  size = 'medium',
  skin = 'standard',
  icon = /*#__PURE__*/_react.default.createElement(_wixUiIconsCommon.More, {
    __self: this,
    __source: {
      fileName: _jsxFileName,
      lineNumber: 20,
      columnNumber: 10
    }
  }),
  ariaLabel
}) {
  const buttonAriaLabel = typeof tooltipContent === 'string' ? tooltipContent : ariaLabel;
  const button = /*#__PURE__*/_react.default.createElement(_designSystem.IconButton, {
    dataHook: dataHook,
    disabled: true,
    priority: "secondary",
    size: size,
    skin: skin,
    ariaLabel: buttonAriaLabel,
    __self: this,
    __source: {
      fileName: _jsxFileName,
      lineNumber: 29,
      columnNumber: 5
    }
  }, icon);
  return /*#__PURE__*/_react.default.createElement(_designSystem.Box, {
    verticalAlign: "middle",
    align: "center",
    width: "100%",
    __self: this,
    __source: {
      fileName: _jsxFileName,
      lineNumber: 42,
      columnNumber: 5
    }
  }, tooltipContent ? /*#__PURE__*/_react.default.createElement(_DisabledTooltip.DisabledTooltip, {
    dataHook: dataHook ? `${dataHook}-tooltip` : undefined,
    content: tooltipContent,
    __self: this,
    __source: {
      fileName: _jsxFileName,
      lineNumber: 44,
      columnNumber: 9
    }
  }, button) : button);
}
//# sourceMappingURL=DisabledActionCellMenu.js.map