"use strict";

var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
exports.__esModule = true;
exports.PageErrorState = PageErrorState;
var _react = _interopRequireDefault(require("react"));
var _ErrorState = require("../ErrorState");
var _designSystem = require("@wix/design-system");
var _PageErrorStateIllustration = require("./PageErrorStateIllustration");
var _wixUiIconsCommon = require("@wix/wix-ui-icons-common");
var _jsxFileName = "/home/builduser/work/843658b9f44192f0/packages/cairo/dist/cjs/components/PageErrorState/PageErrorState.tsx";
function PageErrorState({
  onRetry,
  title,
  subtitle,
  retryText,
  image,
  dataHook
}) {
  return /*#__PURE__*/_react.default.createElement(_designSystem.Page, {
    dataHook: dataHook,
    __self: this,
    __source: {
      fileName: _jsxFileName,
      lineNumber: 39,
      columnNumber: 5
    }
  }, /*#__PURE__*/_react.default.createElement(_designSystem.Page.Header, {
    __self: this,
    __source: {
      fileName: _jsxFileName,
      lineNumber: 40,
      columnNumber: 7
    }
  }), /*#__PURE__*/_react.default.createElement(_designSystem.Page.Content, {
    __self: this,
    __source: {
      fileName: _jsxFileName,
      lineNumber: 41,
      columnNumber: 7
    }
  }, /*#__PURE__*/_react.default.createElement(_ErrorState.LoadingErrorState, {
    title: title,
    subtitle: subtitle,
    action: retryText && onRetry ? {
      text: retryText,
      onClick: onRetry,
      prefixIcon: /*#__PURE__*/_react.default.createElement(_wixUiIconsCommon.Refresh, {
        __self: this,
        __source: {
          fileName: _jsxFileName,
          lineNumber: 50,
          columnNumber: 31
        }
      })
    } : undefined,
    image: image ?? /*#__PURE__*/_react.default.createElement(_PageErrorStateIllustration.PageErrorStateIllustration, {
      __self: this,
      __source: {
        fileName: _jsxFileName,
        lineNumber: 54,
        columnNumber: 27
      }
    }),
    dataHook: "page-error-state",
    __self: this,
    __source: {
      fileName: _jsxFileName,
      lineNumber: 42,
      columnNumber: 9
    }
  })));
}
//# sourceMappingURL=PageErrorState.js.map