Spaces:
Sleeping
Sleeping
File size: 316 Bytes
56fda74 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
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;
}, {});
} |