FrontPastel/node_modules/@mui/base/utils/resolveComponentProps.d.ts

6 lines
381 B
TypeScript
Raw Normal View History

2024-04-17 13:55:11 +00:00
/**
* If `componentProps` is a function, calls it with the provided `ownerState`.
* Otherwise, just returns `componentProps`.
*/
export declare function resolveComponentProps<TProps, TOwnerState, TSlotState>(componentProps: TProps | ((ownerState: TOwnerState, slotState?: TSlotState) => TProps) | undefined, ownerState: TOwnerState, slotState?: TSlotState): TProps | undefined;