import{r,b0 as p,u as h,hN as d,b2 as u,j as n,a_ as x,O as e,aT as j,e as l}from"./index-d6499a22.js";import{R as v}from"./RedirectInProject-0591395a.js";import{N as y}from"./NoData-789df290.js";const E=()=>{const s=p(),{id:t}=h(),{currentData:o,isLoading:a}=d(t),i=u(m=>m.loading.effects.pythonEnvironment.create),c=r.useCallback(()=>{s.pythonEnvironment.create({id:+t,version:"3.8"})},[s,t]);return a?n.jsx(x,{}):o?n.jsx(v,{to:l.project.settings.pythonWithEnvironment,params:{version:o.items[0].pythonVersion.replace(".","-")}}):n.jsxs(e,{height:"100%",children:[n.jsx(e,{py:"40px",children:n.jsx(y,{mainText:"No python environment"})}),n.jsx(e,{display:"flex",justifyContent:"center",children:n.jsx(j,{onClick:c,isLoading:i,children:"Create Environment"})})]})},N=r.memo(E);export{N as default};
