import{useState as e,useRef as t,useEffect as r}from"react";let l=(l,u,n)=>{let[a,m]=e(!(l&&u)),d=t(null);return r(()=>{d.current?.load()},[n]),{playVideoAndTurnOffThumbnail:()=>{m(!1),d?.current&&d.current.play()},videoRef:d,showThumbnail:a}};export{l as default,l as useLiteHtml5Embed};
