"use strict";

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

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

var _openData = require("../../../../../../utils/open-data");

require("./index.css");

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

var preCls = "home-page-data-list-columns__okrname";

function OkrNameColumn(_ref) {
  var children = _ref.children,
      _ref$type = _ref.type,
      type = _ref$type === void 0 ? "O" : _ref$type,
      onClick = _ref.onClick;
  return /*#__PURE__*/_react["default"].createElement("div", {
    className: preCls,
    onClick: onClick
  }, type === "O" && /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, /*#__PURE__*/_react["default"].createElement("div", {
    className: "".concat(preCls, "__tagO")
  }, "O"), /*#__PURE__*/_react["default"].createElement("span", {
    className: "".concat(preCls, "__contentO")
  }, (0, _openData.parseString)(children))), type === "KR" && /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, /*#__PURE__*/_react["default"].createElement("div", {
    className: "".concat(preCls, "__tagKR")
  }, "KR"), /*#__PURE__*/_react["default"].createElement("span", {
    className: "".concat(preCls, "__contentKR")
  }, (0, _openData.parseString)(children))));
}

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