"use strict";

var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
exports.__esModule = true;
exports.NewItemButton = NewItemButton;
var _react = _interopRequireDefault(require("react"));
var _react2 = require("@wix/bex-core/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/EmptyState/NewItemButton.tsx";
function NewItemButton(props) {
  const state = (0, _react2.useCollectionContext)();
  const {
    translate: t
  } = state;
  const {
    onClick,
    text
  } = props;
  return /*#__PURE__*/_react.default.createElement(_designSystem.TextButton, {
    onClick: onClick,
    prefixIcon: /*#__PURE__*/_react.default.createElement(_wixUiIconsCommon.Add, {
      __self: this,
      __source: {
        fileName: _jsxFileName,
        lineNumber: 19,
        columnNumber: 19
      }
    }),
    dataHook: "empty-state-new-item-button",
    __self: this,
    __source: {
      fileName: _jsxFileName,
      lineNumber: 17,
      columnNumber: 5
    }
  }, text ?? t('cairo.emptyState.additem.cta'));
}
//# sourceMappingURL=NewItemButton.js.map