Spaces:
Sleeping
Sleeping
File size: 368 Bytes
56fda74 |
1 2 3 4 5 6 7 8 9 10 11 |
/**
* 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;
}
export default resolveComponentProps; |