Jesus sucks
This commit is contained in:
21
backend/frontend/node_modules/@mui/system/modern/useThemeProps/useThemeProps.js
generated
vendored
Normal file
21
backend/frontend/node_modules/@mui/system/modern/useThemeProps/useThemeProps.js
generated
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
'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;
|
||||
}
|
||||
Reference in New Issue
Block a user