"use strict";

var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
exports.__esModule = true;
exports.manageTagsPageAction = manageTagsPageAction;
var _wixUiIconsCommon = require("@wix/wix-ui-icons-common");
var _react = _interopRequireDefault(require("react"));
var _jsxFileName = "/home/builduser/work/843658b9f44192f0/packages/cairo/dist/cjs/components/Tags/manageTagsPageAction.tsx";
function manageTagsPageAction({
  pageState,
  container
}) {
  const {
    translate: t
  } = container;
  return {
    biName: 'manage-tags',
    dataHook: 'manage-tags',
    text: t('cairo.tags.collectionPage.tagsColumn.manage.CTA'),
    prefixIcon: /*#__PURE__*/_react.default.createElement(_wixUiIconsCommon.TagSmall, {
      __self: this,
      __source: {
        fileName: _jsxFileName,
        lineNumber: 18,
        columnNumber: 17
      }
    }),
    onClick: () => {
      var _pageState$primaryToo;
      (_pageState$primaryToo = pageState.primaryToolbar) == null || (_pageState$primaryToo = _pageState$primaryToo.tagsCollectionState) == null || _pageState$primaryToo.openManageTagsModal();
    }
  };
}
//# sourceMappingURL=manageTagsPageAction.js.map