"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.EssayItemWithImg = EssayItemWithImg;
exports.EssayItemWithoutImg = EssayItemWithoutImg;

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

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

function EssayItemWithImg(props) {
  var essayInfo = props.essayInfo;
  var pictureUrl = essayInfo.pictureUrl,
      name = essayInfo.name,
      url = essayInfo.url;
  return /*#__PURE__*/_react["default"].createElement("div", {
    className: "okr-essay-components__content__withImg__item"
  }, /*#__PURE__*/_react["default"].createElement("a", {
    target: "_blank",
    href: url,
    rel: "noreferrer"
  }, /*#__PURE__*/_react["default"].createElement("img", {
    alt: "",
    src: pictureUrl,
    className: "okr-essay-components__content__withImg__item__img"
  })), /*#__PURE__*/_react["default"].createElement("div", {
    className: "okr-essay-components__content__withImg__item-right"
  }, /*#__PURE__*/_react["default"].createElement("div", {
    className: "okr-essay-components__content__withImg__item__summary"
  }, /*#__PURE__*/_react["default"].createElement("a", {
    target: "_blank",
    href: url,
    rel: "noreferrer"
  }, " ", name, " "))));
}

function EssayItemWithoutImg(props) {
  var essayInfo = props.essayInfo;
  var name = essayInfo.name,
      url = essayInfo.url;
  return /*#__PURE__*/_react["default"].createElement("div", {
    className: "okr-essay-components__content__withoutImg__item"
  }, /*#__PURE__*/_react["default"].createElement("div", {
    className: "okr-essay-components__content__withoutImg__item__summary"
  }, /*#__PURE__*/_react["default"].createElement("a", {
    target: "_blank",
    href: url,
    rel: "noreferrer"
  }, " ", name, " ")));
}