Spaces:
Sleeping
Sleeping
pythonic-rag-FastAPIReact
/
frontend
/node_modules
/@mui
/material
/FormControl
/formControlState.js
| export default function formControlState({ | |
| props, | |
| states, | |
| muiFormControl | |
| }) { | |
| return states.reduce((acc, state) => { | |
| acc[state] = props[state]; | |
| if (muiFormControl) { | |
| if (typeof props[state] === 'undefined') { | |
| acc[state] = muiFormControl[state]; | |
| } | |
| } | |
| return acc; | |
| }, {}); | |
| } |