Files
aso/public/dashboard/assets/RHFEditor.3626228e.js
2023-02-15 10:47:39 +07:00

2 lines
374 B
JavaScript

import{J as r,f as t,K as l,bD as i,bE as x}from"./index.eaf14aef.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};