import{useState as r}from"react";const t=()=>{const[t,o]=r(!0),[e,n]=r(!1),[s,a]=r(null);return{models:{imgSize:s},status:{isLoading:t,isError:e},operations:{onLoadImage:r=>{const{naturalWidth:t,naturalHeight:e}=r.currentTarget;s||a({width:t,height:e}),o(!1)},onError:()=>{n(!0),o(!1)},onReset:()=>{o(!0),n(!1),a(null)},setIsLoading:o,setIsError:n}}};export{t as u};
//# sourceMappingURL=usePreviewImage-DqIO3PcZ.js.map
