"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports["default"] = void 0;

var _react = _interopRequireDefault(require("react"));

var _drawer = _interopRequireDefault(require("../../drawer"));

require("./index.css");

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }

function OkrDetailErrorPage(_ref) {
  var message = _ref.message;

  if (!message || typeof message !== "string") {
    message = "抱歉，出现未知异常";
  }

  return /*#__PURE__*/_react["default"].createElement("div", {
    className: "okr-detail-drawer-error"
  }, /*#__PURE__*/_react["default"].createElement(_drawer["default"].Header, null), /*#__PURE__*/_react["default"].createElement("div", {
    className: "okr-detail-drawer-error-body"
  }, /*#__PURE__*/_react["default"].createElement("img", {
    src: require("../images/empty-131.png")
  }), /*#__PURE__*/_react["default"].createElement("span", null, message)));
}

var _default = OkrDetailErrorPage;
exports["default"] = _default;