import{J as r,f as t,K as l,bj as i,b9 as x}from"./index.8f299a7d.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};
