Page MenuHomec4science

getThemeProps.js
No OneTemporary

File Metadata

Created
Sun, Jan 26, 11:34

getThemeProps.js

import { internal_resolveProps as resolveProps } from '@mui/utils';
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);
}

Event Timeline