import{r}from"./vendor-react-wBh_31cN.js";import{j as u,u as c}from"./vendor-redux-CJZrIb6x.js";import{a as n}from"./utils-beqlqcBX.js";const g=t=>{const s=u(),{data:e,isLoading:a}=c(n),i=r.useCallback(()=>{s.jupyter.fetchSettings({projectId:t})},[s,t]);return r.useEffect(()=>{!a&&!e&&s.jupyter.fetchSettings({projectId:t})},[s.jupyter,a,t,e]),{data:e,isLoading:a,refetch:i}};export{g as u};
