import resolveProps from '../../../utils/esm/resolveProps/resolveProps.mjs';

function getThemeProps$1(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);
}

export { getThemeProps$1 as default };
//# sourceMappingURL=getThemeProps.mjs.map
