import{jsx as r}from"react/jsx-runtime";import{I as o}from"./index-CQXsL1YZ.js";import{useState as t}from"react";import{I as e}from"./ImageErrorBoundary-CO_f5xdF.js";import"react-dom";import"@bbodek/hooks";import"@bbodek/utils";import"overlay-kit";const s=({src:s,size:i,setIsLoading:a,errorComponent:m,alt:n})=>{const[c,l]=t(!1);return r(e,{className:"bg-in-gray-01",errorComponent:m,isError:c,children:r(o,{alt:n,className:"h-full w-full object-cover",height:i,sizes:`${i}px`,src:s,width:i,onError:()=>{l(!0),a(!1)},onLoad:()=>a(!1)})})};export{s as default};
//# sourceMappingURL=ThumbnailImage-Cc0SpGnp.js.map
