"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports["default"] = void 0;
var _react = _interopRequireDefault(require("react"));
var _player = require("@vtx/player");
var _useSettings2 = _interopRequireDefault(require("../vm-hooks/useSettings"));
require("./index.less");
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
var VmVideo = function VmVideo(_ref) {
  var _ref$videoPlaceCode = _ref.videoPlaceCode,
    videoPlaceCode = _ref$videoPlaceCode === void 0 ? '' : _ref$videoPlaceCode;
  var _useSettings = (0, _useSettings2["default"])(),
    isDark = _useSettings.isDark,
    theme = _useSettings.theme;
  return /*#__PURE__*/_react["default"].createElement("div", {
    className: "vm-video ".concat(theme)
  }, videoPlaceCode ? (/*#__PURE__*/_react["default"].createElement(_player.BillPlayer, {
    height: 640,
    isDark: isDark || theme === 'blue',
    params: {
      billId: videoPlaceCode
    }
  })) : (/*#__PURE__*/_react["default"].createElement("div", {
    style: {
      display: 'flex',
      height: '100%',
      justifyContent: 'center',
      alignItems: 'center',
      color: '#fff'
    }
  }, "\u6682\u65E0\u89C6\u9891")));
};
var _default = exports["default"] = VmVideo;
//# sourceMappingURL=index.js.map
