"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react");const t=(t,r,u)=>{let[l,s]=e.useState(!(t&&r)),n=e.useRef(null);return e.useEffect(()=>{n.current?.load()},[u]),{playVideoAndTurnOffThumbnail:()=>{s(!1),n?.current&&n.current.play()},videoRef:n,showThumbnail:l}};exports.default=t,exports.useLiteHtml5Embed=t;
