Spaces:
Sleeping
Sleeping
pythonic-rag-FastAPIReact / frontend /node_modules /@mui /utils /resolveComponentProps /resolveComponentProps.js
Download frontend/node_modules/@mui/utils/resolveComponentProps/resolveComponentProps.js from sepidnes/pythonic-rag-FastAPIReact: direct link, hf CLI and curl.
- Browser
- Download file 492 Bytes
-
https://huggingface.co/spaces/sepidnes/pythonic-rag-FastAPIReact/resolve/94e32638a275d46bc1ba62feac204fcaaf313da4/frontend/node_modules/%40mui/utils/resolveComponentProps/resolveComponentProps.js
- Command line
-
hf download hf://spaces/sepidnes/pythonic-rag-FastAPIReact@94e32638a275d46bc1ba62feac204fcaaf313da4/frontend/node_modules/@mui/utils/resolveComponentProps/resolveComponentProps.js
-
curl -L -o resolveComponentProps.js https://huggingface.co/spaces/sepidnes/pythonic-rag-FastAPIReact/resolve/94e32638a275d46bc1ba62feac204fcaaf313da4/frontend/node_modules/%40mui/utils/resolveComponentProps/resolveComponentProps.js
492 Bytes
| ; | |
| Object.defineProperty(exports, "__esModule", { | |
| value: true | |
| }); | |
| exports.default = void 0; | |
| /** | |
| * If `componentProps` is a function, calls it with the provided `ownerState`. | |
| * Otherwise, just returns `componentProps`. | |
| */ | |
| function resolveComponentProps(componentProps, ownerState, slotState) { | |
| if (typeof componentProps === 'function') { | |
| return componentProps(ownerState, slotState); | |
| } | |
| return componentProps; | |
| } | |
| var _default = exports.default = resolveComponentProps; |