"use strict";

var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
exports.__esModule = true;
exports.PickerStandaloneLayoutFooter = void 0;
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
var _mobxReactLite = require("mobx-react-lite");
var _react = _interopRequireDefault(require("react"));
var _designSystem = require("@wix/design-system");
var _wixUiIconsCommon = require("@wix/wix-ui-icons-common");
var _jsxFileName = "/home/builduser/work/843658b9f44192f0/packages/cairo/dist/cjs/components/PickerStandaloneLayout/PickerStandaloneLayoutFooter.tsx";
function _PickerStandaloneLayoutFooter(props) {
  const {
    state,
    createNewAction
  } = props;
  return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_designSystem.Divider, {
    __self: this,
    __source: {
      fileName: _jsxFileName,
      lineNumber: 23,
      columnNumber: 7
    }
  }), /*#__PURE__*/_react.default.createElement(_designSystem.Box, {
    paddingLeft: "SP4",
    paddingRight: "SP4",
    paddingTop: "SP3",
    paddingBottom: "SP3",
    verticalAlign: "middle",
    __self: this,
    __source: {
      fileName: _jsxFileName,
      lineNumber: 24,
      columnNumber: 7
    }
  }, createNewAction && /*#__PURE__*/_react.default.createElement(_designSystem.TextButton, (0, _extends2.default)({
    key: createNewAction.key,
    dataHook: "create-new-item-cta"
  }, createNewAction.props, {
    prefixIcon: /*#__PURE__*/_react.default.createElement(_wixUiIconsCommon.Add, {
      __self: this,
      __source: {
        fileName: _jsxFileName,
        lineNumber: 36,
        columnNumber: 25
      }
    }),
    suffixIcon: undefined,
    onClick: e => {
      state.onCreateNewClick();
      const buttonProps = createNewAction.props;
      buttonProps == null || buttonProps.onClick == null || buttonProps.onClick(e);
    },
    __self: this,
    __source: {
      fileName: _jsxFileName,
      lineNumber: 32,
      columnNumber: 11
    }
  }))));
}
const PickerStandaloneLayoutFooter = exports.PickerStandaloneLayoutFooter = (0, _mobxReactLite.observer)(_PickerStandaloneLayoutFooter);
//# sourceMappingURL=PickerStandaloneLayoutFooter.js.map