Spaces:
Sleeping
Sleeping
pythonic-rag-FastAPIReact / frontend /node_modules /@mui /material /FormControl /formControlState.js
Download frontend/node_modules/@mui/material/FormControl/formControlState.js from sepidnes/pythonic-rag-FastAPIReact: direct link, hf CLI and curl.
- Browser
- Download file 316 Bytes
-
https://huggingface.co/spaces/sepidnes/pythonic-rag-FastAPIReact/resolve/94e32638a275d46bc1ba62feac204fcaaf313da4/frontend/node_modules/%40mui/material/FormControl/formControlState.js
- Command line
-
hf download hf://spaces/sepidnes/pythonic-rag-FastAPIReact@94e32638a275d46bc1ba62feac204fcaaf313da4/frontend/node_modules/@mui/material/FormControl/formControlState.js
-
curl -L -o formControlState.js https://huggingface.co/spaces/sepidnes/pythonic-rag-FastAPIReact/resolve/94e32638a275d46bc1ba62feac204fcaaf313da4/frontend/node_modules/%40mui/material/FormControl/formControlState.js
316 Bytes
| 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; | |
| }, {}); | |
| } |