ohctechv3/.svn/pristine/fc/fc78bc4c87a08552df5df5fb280857e5bbacc9d6.svn-base
2024-10-28 15:03:36 +05:30

16 lines
465 B
Plaintext

"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.resolveComponentProps = resolveComponentProps;
/**
* If `componentProps` is a function, calls it with the provided `ownerState`.
* Otherwise, just returns `componentProps`.
*/
function resolveComponentProps(componentProps, ownerState, slotState) {
if (typeof componentProps === 'function') {
return componentProps(ownerState, slotState);
}
return componentProps;
}