type ExtractProps = T extends React.ComponentType ? P : T; export type { ExtractProps as E };