"use strict";

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

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

var _main = _interopRequireDefault(require("./main"));

var _clone_player = _interopRequireDefault(require("./clone_player"));

var _non_control = _interopRequireDefault(require("./non_control"));

var _landding = _interopRequireDefault(require("./landding"));

const _excluded = ["type"];

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

function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }

function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }

const Player = _ref => {
  let {
    type
  } = _ref,
      props = _objectWithoutProperties(_ref, _excluded);

  switch (type) {
    case "main":
      return /*#__PURE__*/_react.default.createElement(_main.default, props);

    case "clone":
      return /*#__PURE__*/_react.default.createElement(_clone_player.default, props);

    case "non":
      return /*#__PURE__*/_react.default.createElement(_non_control.default, props);

    case "landding":
      return /*#__PURE__*/_react.default.createElement(_landding.default, props);

    default:
      break;
  }
};

var _default = Player;
exports.default = _default;