"use strict";

var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
exports.__esModule = true;
exports.SaveToNewViewFooter = void 0;
var _react = _interopRequireDefault(require("react"));
var _mobxReactLite = require("mobx-react-lite");
var _designSystem = require("@wix/design-system");
var _wixUiIconsCommon = require("@wix/wix-ui-icons-common");
var _react2 = require("@wix/bex-core/react");
var _jsxFileName = "/home/builduser/work/843658b9f44192f0/packages/cairo/dist/cjs/components/CollectionViewsDropdown/SaveToNewViewFooter.tsx";
function _SaveToNewViewFooter({
  state
}) {
  const {
    translate: t
  } = (0, _react2.useWixPatternsContainer)();
  const {
    views: viewsState
  } = state;
  return /*#__PURE__*/_react.default.createElement("div", {
    "data-hook": "save-to-new-view-footer",
    __self: this,
    __source: {
      fileName: _jsxFileName,
      lineNumber: 20,
      columnNumber: 5
    }
  }, /*#__PURE__*/_react.default.createElement(_designSystem.Divider, {
    __self: this,
    __source: {
      fileName: _jsxFileName,
      lineNumber: 21,
      columnNumber: 7
    }
  }), /*#__PURE__*/_react.default.createElement(_designSystem.ListItemAction, {
    size: "medium",
    weight: "thin",
    dataHook: "save-to-new-view",
    prefixIcon: /*#__PURE__*/_react.default.createElement(_wixUiIconsCommon.Add, {
      __self: this,
      __source: {
        fileName: _jsxFileName,
        lineNumber: 26,
        columnNumber: 21
      }
    }),
    disabled: viewsState.reachedViewsLimit,
    onClick: () => {
      viewsState.saveViewModal.open();
      state.table.closeSidePanel();
    },
    title: t('cairo.manageView.saveNewView.CTA'),
    __self: this,
    __source: {
      fileName: _jsxFileName,
      lineNumber: 22,
      columnNumber: 7
    }
  }));
}
const SaveToNewViewFooter = exports.SaveToNewViewFooter = (0, _mobxReactLite.observer)(_SaveToNewViewFooter);
//# sourceMappingURL=SaveToNewViewFooter.js.map