paradiego
This commit is contained in:
20
node_modules/@mui/system/useThemeProps/useThemeProps.js
generated
vendored
Normal file
20
node_modules/@mui/system/useThemeProps/useThemeProps.js
generated
vendored
Normal file
@@ -0,0 +1,20 @@
|
||||
'use client';
|
||||
|
||||
import getThemeProps from "./getThemeProps.js";
|
||||
import useTheme from "../useTheme/index.js";
|
||||
export default function useThemeProps({
|
||||
props,
|
||||
name,
|
||||
defaultTheme,
|
||||
themeId
|
||||
}) {
|
||||
let theme = useTheme(defaultTheme);
|
||||
if (themeId) {
|
||||
theme = theme[themeId] || theme;
|
||||
}
|
||||
return getThemeProps({
|
||||
theme,
|
||||
name,
|
||||
props
|
||||
});
|
||||
}
|
||||
Reference in New Issue
Block a user