GetChatSelector type

Specific type of the selector applicable to a given Component.

type GetChatSelector<Component> = AreEqual<
  Component,
  typeof SendBox
> extends true
  ? SendBoxSelector
  : AreEqual<Component, typeof MessageThread> extends true
  ? MessageThreadSelector
  : AreEqual<Component, typeof TypingIndicator> extends true
  ? TypingIndicatorSelector
  : AreEqual<Component, typeof ParticipantList> extends true
  ? ChatParticipantListSelector
  : AreEqual<Component, typeof ErrorBar> extends true
  ? ChatErrorBarSelector
  : undefined