@mui/base
Version:
A library of headless ('unstyled') React UI components and low-level hooks.
6 lines (5 loc) • 321 B
TypeScript
/**
* If `componentProps` is a function, calls it with the provided `ownerState`.
* Otherwise, just returns `componentProps`.
*/
export default function resolveComponentProps<TProps, TOwnerState>(componentProps: TProps | ((ownerState: TOwnerState) => TProps) | undefined, ownerState: TOwnerState): TProps | undefined;