import{r as o}from"./vendor-react-wBh_31cN.js";import{d as u}from"./index-BeaoFlb1.js";import{C as i}from"./project-eQY1xQe-.js";const f=({projectId:s,interval:a})=>{const[r,e]=o.useState(),{currentData:t,isLoading:n}=u(s,{skip:!s,pollingInterval:r});return o.useEffect(()=>{e((t==null?void 0:t.creationStatus)===i.ONGOING?a:void 0)},[a,t==null?void 0:t.creationStatus]),{project:t,isLoading:n}};export{f as u};
