"use strict";

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

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

var _classnames = _interopRequireDefault(require("classnames"));

var _getLocale = require("../../../../utils/getLocale");

require("./index.css");

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

var preCls = "okr-detail-olist-empty";

function _default(_ref) {
  var onCreateKr = _ref.onCreateKr,
      canEditOkr = _ref.canEditOkr,
      _ref$style = _ref.style,
      style = _ref$style === void 0 ? {} : _ref$style;
  return /*#__PURE__*/_react["default"].createElement("div", {
    className: preCls,
    style: style
  }, /*#__PURE__*/_react["default"].createElement("div", {
    className: (0, _classnames["default"])("".concat(preCls, "__icon"))
  }, /*#__PURE__*/_react["default"].createElement("span", null)), /*#__PURE__*/_react["default"].createElement("div", {
    className: (0, _classnames["default"])("".concat(preCls, "__desp"))
  }, /*#__PURE__*/_react["default"].createElement("div", {
    className: (0, _classnames["default"])("".concat(preCls, "__desp-h1"))
  }, (0, _getLocale.getLocale)("OKR_MyO_Pop_developkro")), /*#__PURE__*/_react["default"].createElement("div", {
    className: (0, _classnames["default"])("".concat(preCls, "__desp-h2"))
  }, /*#__PURE__*/_react["default"].createElement("span", null, (0, _getLocale.getLocale)("OKR_MyO_Pop_understand")), /*#__PURE__*/_react["default"].createElement("a", {
    href: "https://wiki.tita.com/pages/viewpage.action?pageId=852060",
    target: "_blank",
    rel: "noreferrer"
  }, (0, _getLocale.getLocale)("OKR_MyO_Pop_Whatarekre")))), canEditOkr && /*#__PURE__*/_react["default"].createElement("div", {
    className: (0, _classnames["default"])("".concat(preCls, "__action"))
  }, /*#__PURE__*/_react["default"].createElement("span", {
    className: (0, _classnames["default"])("".concat(preCls, "__action-btn")),
    onClick: function onClick() {
      return onCreateKr();
    }
  }, /*#__PURE__*/_react["default"].createElement("span", null, (0, _getLocale.getLocale)("OKR_MyO_Text_Addkeyr")))));
}