import{j as e}from"./@radix-Cdvw4jJ8.js";import{B as r,r as c,al as n,I as o}from"./index-BgEfQ3_G.js";import{c as m}from"./persist-BsdEtCkd.js";import{c as i}from"./@react-router-DeDfXbUF.js";import{a as l}from"./index.esm-DhJo3mA6.js";function N(){const a=i();function s(){m(),a(c.stacks.create.index)}return e.jsx(r,{onClick:()=>s(),intent:"secondary",size:"md",children:"Cancel"})}function h(a){switch(a){case"aws":return"AWS";case"azure":return"Azure";case"gcp":return"GCP";default:return"Provider"}}function j(){var t;const{register:a,formState:{errors:s}}=l();return e.jsxs("section",{className:"space-y-5 border-b border-theme-border-moderate pb-5",children:[e.jsxs("div",{className:"space-y-1",children:[e.jsxs("p",{className:"flex items-center gap-1 text-text-lg font-semibold",children:[e.jsx(n,{className:"h-5 w-5 fill-primary-400"}),"Select a name for your Stack"]}),e.jsx("p",{className:"text-theme-text-secondary",children:"Please select a name for your stack, that is not used already."})]}),e.jsx("div",{className:"flex items-center space-x-2",children:e.jsxs("div",{className:"space-y-1",children:[e.jsx(o,{className:`${s.stackName?"border-red-500":""}`,placeholder:"zenml-remote-stack",...a("stackName")}),s.stackName&&e.jsx("p",{className:"text-text-xs text-red-500",children:(t=s.stackName.message)==null?void 0:t.toString()})]})})]})}export{N as C,j as S,h as g};
