Spaces:
Sleeping
Sleeping
pythonic-rag-FastAPIReact / frontend /node_modules /@mui /system /esm /useThemeProps /useThemeProps.js
Download frontend/node_modules/@mui/system/esm/useThemeProps/useThemeProps.js from sepidnes/pythonic-rag-FastAPIReact: direct link, hf CLI and curl.
- Browser
- Download file 378 Bytes
-
https://huggingface.co/spaces/sepidnes/pythonic-rag-FastAPIReact/resolve/56fda741e84da791ee2e6198479f1d5630989f6c/frontend/node_modules/%40mui/system/esm/useThemeProps/useThemeProps.js
- Command line
-
hf download hf://spaces/sepidnes/pythonic-rag-FastAPIReact@56fda741e84da791ee2e6198479f1d5630989f6c/frontend/node_modules/@mui/system/esm/useThemeProps/useThemeProps.js
-
curl -L -o useThemeProps.js https://huggingface.co/spaces/sepidnes/pythonic-rag-FastAPIReact/resolve/56fda741e84da791ee2e6198479f1d5630989f6c/frontend/node_modules/%40mui/system/esm/useThemeProps/useThemeProps.js
378 Bytes
| 'use client'; | |
| import getThemeProps from './getThemeProps'; | |
| import useTheme from '../useTheme'; | |
| export default function useThemeProps({ | |
| props, | |
| name, | |
| defaultTheme, | |
| themeId | |
| }) { | |
| let theme = useTheme(defaultTheme); | |
| if (themeId) { | |
| theme = theme[themeId] || theme; | |
| } | |
| const mergedProps = getThemeProps({ | |
| theme, | |
| name, | |
| props | |
| }); | |
| return mergedProps; | |
| } |