import{r,b1 as p,u as h,hM as d,b3 as u,j as n,a$ as x,o as e,aU as j,b as l}from"./index-ea7817a2.js";import{R as v}from"./RedirectInProject-7cd1be4f.js";import{N as y}from"./NoData-8733f606.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"})})]})},P=r.memo(E);export{P as default};
