UNPKG

organism-react-video

Version:
25 lines 838 B
import _objectSpread from "reshow-runtime/es/helpers/objectSpread2"; import _objectWithoutProperties from "reshow-runtime/es/helpers/objectWithoutProperties"; var _excluded = ["showControllBar", "aspectRatio", "mask"]; import React, { memo } from "react"; import VideoFile from "../organisms/VideoFile.mjs"; import ResponsiveVideo from "../organisms/ResponsiveVideo.mjs"; import { jsx as _jsx } from "react/jsx-runtime"; var Video = /*#__PURE__*/memo(function (props) { var { showControllBar, aspectRatio, mask } = props, others = _objectWithoutProperties(props, _excluded); return /*#__PURE__*/_jsx(ResponsiveVideo, { showControllBar, aspectRatio, mask, children: /*#__PURE__*/_jsx(VideoFile, _objectSpread({}, others)) }); }); Video.defaultProps = { mask: false }; export default Video;