import{r as a}from"./vendor-react-wBh_31cN.js";import{u as m}from"./index-B3Hxcv-8.js";import{f as l}from"./file-utils-B4k-DQmp.js";const $=({projectId:t,modelName:e,version:i})=>{const{currentData:s,isLoading:o}=m({id:Number(t),path:`Models/${e}/${i}/Files/images`,fallbackPaths:[`Models/${e}/${i}/images`,`Models/${e}/${i}/Files`],skipError:!0},{skip:!t||!e||!i,refetchOnFocus:!0});return{images:a.useMemo(()=>((s==null?void 0:s.items)??[]).filter(r=>l({fileName:r.attributes.name})),[s==null?void 0:s.items]),isLoading:o}};export{$ as u};
