"use strict";

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

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

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

var _emptyImg = _interopRequireDefault(require("../../images/empty-img.svg"));

var _conditionRender = _interopRequireDefault(require("../../../../../condition-render"));

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

require("./index.css");

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

var preCls = "titaui-user-message-msg-empty";

function Empty(props) {
  var tabPath = props.tabPath;
  return /*#__PURE__*/_react["default"].createElement("div", {
    className: (0, _classnames["default"])("".concat(preCls, "__empty"))
  }, /*#__PURE__*/_react["default"].createElement("img", {
    src: _emptyImg["default"]
  }), /*#__PURE__*/_react["default"].createElement("div", {
    className: (0, _classnames["default"])("".concat(preCls, "__empty-text"))
  }, (0, _getLocale.getLocale)("Menu_Title_NoNews")), /*#__PURE__*/_react["default"].createElement(_conditionRender["default"], {
    condition: tabPath !== null
  }, /*#__PURE__*/_react["default"].createElement("a", {
    target: "_blank",
    href: tabPath,
    className: (0, _classnames["default"])("".concat(preCls, "__empty-all")),
    rel: "noreferrer"
  }, (0, _getLocale.getLocale)("Menu_Title_ViewNews"))));
}

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