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