Partager via


GetChatSelector type

Type spécifique du sélecteur applicable à un composant donné.

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