import{jsx as l}from"react/jsx-runtime";import{useRef as n,useEffect as f}from"react";const i=t=>{const r=n(null);return f(()=>{if(!r.current)return;const e=r.current.querySelector("iframe");e&&(e.style.width="100%",e.style.height="100%",e.style.border="none")},[t.src]),l("div",{ref:r,className:"relative h-full w-full overflow-hidden",dangerouslySetInnerHTML:{__html:t.src||""}})};export{i as default};
