Partilhar via


GetChatSelector type

Tipo específico do seletor aplicável a um determinado Componente.

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