"use strict";

exports.__esModule = true;
exports.VideoPlayer = void 0;

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

var _reactPlayer = _interopRequireDefault(require("react-player"));

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

var VideoPlayer = function VideoPlayer(_ref) {
  var url = _ref.url,
      autoPlay = _ref.autoPlay;
  return /*#__PURE__*/_react.default.createElement("div", {
    className: "video-holder"
  }, /*#__PURE__*/_react.default.createElement(_reactPlayer.default, {
    className: "react-player",
    url: url,
    width: "100%",
    playing: autoPlay,
    playbackRate: 1.0,
    light: !autoPlay,
    muted: autoPlay,
    controls: autoPlay
  }));
};

VideoPlayer.displayName = 'Video Player';
var VideoPlayerDoc;

if (process.env.NODE_ENV !== 'production') {
  // eslint-disable-next-line global-require
  VideoPlayerDoc = require('./doc').doc(VideoPlayer);
}

var VideoPlayerWrapper = VideoPlayerDoc || VideoPlayer;
exports.VideoPlayer = VideoPlayerWrapper;