"use strict";

var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _react = _interopRequireDefault(require("react"));
require("./index.css");
function BrowserTip(_ref) {
  let {
    lang,
    isWindowsWechat
  } = _ref;
  if (lang !== 'zh-cn') return null;
  const msg = isWindowsWechat ? '你使用的微信存在兼容性问题，仅以只读模式预览。' : '你当前使用的浏览器可能存在兼容性问题。';
  return /*#__PURE__*/_react.default.createElement("div", {
    className: "sf-editor-browser-tip"
  }, /*#__PURE__*/_react.default.createElement("span", {
    className: "browser-tip__icon mdfont md-description"
  }), /*#__PURE__*/_react.default.createElement("span", {
    className: "browser-tip__message"
  }, "".concat(msg, "\u8BF7\u8BD5\u8BD5\u4EE5\u4E0B\u6D4F\u89C8\u5668: Chrome \u6D4F\u89C8\u5668\u6700\u65B0\u7248\uFF0C360 \u6781\u901F\u7248\uFF0CMicrosoft Edge \u6700\u65B0\u7248")));
}
var _default = exports.default = BrowserTip;