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