UNPKG

@activelylearn/material-ui

Version:

Material-UI's workspace package

12 lines (8 loc) 202 B
function getThemeProps(params) { const { theme, name } = params; if (!name || !theme.props || !theme.props[name]) { return {}; } return theme.props[name]; } export default getThemeProps;