import{ay as o,aO as n,r as c,j as r,d as l,aR as x}from"./index-CK33qGU_.js";import{s as f}from"./utils-BLs53_9b.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:"name"})})};export{u as N};
