Spaces:
Sleeping
Sleeping
pythonic-rag-FastAPIReact / frontend /node_modules /@mui /system /modern /useThemeProps /getThemeProps.js
Download frontend/node_modules/@mui/system/modern/useThemeProps/getThemeProps.js from sepidnes/pythonic-rag-FastAPIReact: direct link, hf CLI and curl.
- Browser
- Download file 349 Bytes
-
https://huggingface.co/spaces/sepidnes/pythonic-rag-FastAPIReact/resolve/c9f908872ebbec3c4fa1392419c0f6cd3750ddb3/frontend/node_modules/%40mui/system/modern/useThemeProps/getThemeProps.js
- Command line
-
hf download hf://spaces/sepidnes/pythonic-rag-FastAPIReact@c9f908872ebbec3c4fa1392419c0f6cd3750ddb3/frontend/node_modules/@mui/system/modern/useThemeProps/getThemeProps.js
-
curl -L -o getThemeProps.js https://huggingface.co/spaces/sepidnes/pythonic-rag-FastAPIReact/resolve/c9f908872ebbec3c4fa1392419c0f6cd3750ddb3/frontend/node_modules/%40mui/system/modern/useThemeProps/getThemeProps.js
349 Bytes
| import resolveProps from '@mui/utils/resolveProps'; | |
| export default function getThemeProps(params) { | |
| const { | |
| theme, | |
| name, | |
| props | |
| } = params; | |
| if (!theme || !theme.components || !theme.components[name] || !theme.components[name].defaultProps) { | |
| return props; | |
| } | |
| return resolveProps(theme.components[name].defaultProps, props); | |
| } |