Spaces:
Sleeping
Sleeping
Download frontend/node_modules/@mui/system/useThemeProps/getThemeProps.js from sepidnes/pythonic-rag-FastAPIReact: direct link, hf CLI and curl.
- Browser
- Download file 575 Bytes
-
https://huggingface.co/spaces/sepidnes/pythonic-rag-FastAPIReact/resolve/94e32638a275d46bc1ba62feac204fcaaf313da4/frontend/node_modules/%40mui/system/useThemeProps/getThemeProps.js
- Command line
-
hf download hf://spaces/sepidnes/pythonic-rag-FastAPIReact@94e32638a275d46bc1ba62feac204fcaaf313da4/frontend/node_modules/@mui/system/useThemeProps/getThemeProps.js
-
curl -L -o getThemeProps.js https://huggingface.co/spaces/sepidnes/pythonic-rag-FastAPIReact/resolve/94e32638a275d46bc1ba62feac204fcaaf313da4/frontend/node_modules/%40mui/system/useThemeProps/getThemeProps.js
575 Bytes
| ; | |
| var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); | |
| Object.defineProperty(exports, "__esModule", { | |
| value: true | |
| }); | |
| exports.default = getThemeProps; | |
| var _resolveProps = _interopRequireDefault(require("@mui/utils/resolveProps")); | |
| function getThemeProps(params) { | |
| const { | |
| theme, | |
| name, | |
| props | |
| } = params; | |
| if (!theme || !theme.components || !theme.components[name] || !theme.components[name].defaultProps) { | |
| return props; | |
| } | |
| return (0, _resolveProps.default)(theme.components[name].defaultProps, props); | |
| } |