2 lines
374 B
JavaScript
2 lines
374 B
JavaScript
import{J as r,f as t,K as l,bD as i,bE as x}from"./index.ef35a7e7.js";function u({name:a,...s}){const{control:n}=r();return t(l,{name:a,control:n,render:({field:o,fieldState:{error:e}})=>t(i,{id:a,value:o.value,onChange:o.onChange,error:!!e,simple:!0,helperText:t(x,{error:!0,sx:{px:2,textTransform:"capitalize"},children:e==null?void 0:e.message}),...s})})}export{u as R};
|