"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react");const t=(t,r)=>{let[s,o]=e.useState(),[a,u]=e.useState(!t);return e.useEffect(()=>{fetch(`https://vimeo.com/api/v2/video/${r}.json`).then(e=>e.json()).then(([e])=>{o(e?.thumbnail_large)})},[r]),{addIframe:()=>{a||u(!0)},thumbnail:s,iframe:a}};exports.default=t,exports.useLiteVimeoEmbed=t;
