"use strict";

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