import{jsx as o}from"react/jsx-runtime";import{i as r,T as t,n as e,e as i,o as s}from"./index-CQXsL1YZ.js";import{useState as n}from"react";import"@bbodek/utils";import a from"./PreviewThumbnailNotSupport-DdqAw1Pt.js";import"react-dom";import"@bbodek/hooks";import"overlay-kit";const m=i((()=>import("./ThumbnailImage-Cc0SpGnp.js")),{ssr:!1}),p=i((()=>import("./index-CQXsL1YZ.js").then((function(o){return o.eh}))),{ssr:!1}),l=({file:i})=>{const[l,d]=n(!0);return o(r,{className:"bg-in-gray-01",isLoading:l,loadingComponent:o(t,{}),children:(()=>{const{type:r,blob:t,original:n}=i,l={alt:"",size:60,setIsLoading:d,errorComponent:o(a,{})};return e({type:r})?o(m,{...l,src:t}):s({type:r})?o(p,{...l,file:n}):void 0})()})};export{l as default};
//# sourceMappingURL=PreviewThumbnailViewer-Dth4fMGI.js.map
