UNPKG

321 BTypeScriptView Raw
1/**
2 * If `componentProps` is a function, calls it with the provided `ownerState`.
3 * Otherwise, just returns `componentProps`.
4 */
5export default function resolveComponentProps<TProps, TOwnerState>(componentProps: TProps | ((ownerState: TOwnerState) => TProps) | undefined, ownerState: TOwnerState): TProps | undefined;