/// import { SxProps } from '@temp-mui/system'; import { SlotComponentProps } from '@temp-mui/base'; export type SlotCommonProps = { component?: React.ElementType; sx?: SxProps; }; export type SlotProps = SlotComponentProps; /** * Use the keys of `Slots` to make sure that K contains all of the keys * * @example CreateSlotsAndSlotProps<{ root: React.ElementType, decorator: React.ElementType }, { root: ..., decorator: ... }> */ export type CreateSlotsAndSlotProps> = { /** * The components used for each slot inside. * @default {} */ slots?: Slots; /** * The props used for each slot inside. * @default {} */ slotProps?: { [P in keyof K]?: K[P]; }; };