@shopgate/engage
Version:
Shopgate's ENGAGE library.
30 lines (29 loc) • 612 B
JavaScript
import React from 'react';
import { useVideoWidget } from "./hooks";
import WidgetVideo from "../../components/WidgetVideo";
/**
* The VideoWidget is used to display a video.
* @returns {JSX.Element}
*/
import { jsx as _jsx } from "react/jsx-runtime";
const Video = () => {
const {
url,
muted,
loop,
controls,
autoplay,
borderRadius,
link
} = useVideoWidget();
return /*#__PURE__*/_jsx(WidgetVideo, {
url: url,
loop: loop,
muted: muted,
controls: controls,
autoplay: autoplay,
borderRadius: borderRadius,
link: link
});
};
export default Video;