import{aR as o,bd as n,r as l,j as r,q as c,aH as x}from"./index-DHiyXWqE.js";import{s as i}from"./styles-Cck2dVpe.js";const u=()=>{const{register:t,formState:{errors:m},setValue:a}=o(),[s,e]=n({name:["name","modelName"]});return l.useEffect(()=>{!s&&e&&a("name",e==null?void 0:e.replace(/[^a-zA-Z0-9]/g,"")),!e&&s&&a("name","")},[e,a]),r.jsx(c,{sx:m.name?i.errorText:{},children:r.jsx(x,{...t("name"),label:"Name",placeholder:"deployment name"})})};export{u as N};
