Share via


GetCallingSelector type

Specific type of the selector applicable to a given Component.

type GetCallingSelector<Component> = AreEqual<
  Component,
  typeof VideoGallery
> extends true
  ? VideoGallerySelector
  : AreEqual<Component, typeof DevicesButton> extends true
  ? DevicesButtonSelector
  : AreEqual<Component, typeof MicrophoneButton> extends true
  ? MicrophoneButtonSelector
  : AreEqual<Component, typeof CameraButton> extends true
  ? CameraButtonSelector
  : AreEqual<Component, typeof ScreenShareButton> extends true
  ? ScreenShareButtonSelector
  : AreEqual<Component, typeof ParticipantList> extends true
  ? ParticipantListSelector
  : AreEqual<Component, typeof ParticipantsButton> extends true
  ? ParticipantsButtonSelector
  : AreEqual<Component, typeof EndCallButton> extends true
  ? EmptySelector
  : AreEqual<Component, typeof ErrorBar> extends true
  ? CallErrorBarSelector
  : AreEqual<Component, typeof Dialpad> extends true
  ? EmptySelector
  : AreEqual<Component, typeof HoldButton> extends true
  ? HoldButtonSelector
  : AreEqual<Component, typeof NotificationStack> extends true
  ? NotificationStackSelector
  : AreEqual<Component, typeof IncomingCallStack> extends true
  ? IncomingCallStackSelector
  : AreEqual<Component, typeof ReactionButton> extends true
  ? RaiseHandButtonSelector
  : AreEqual<Component, typeof CaptionsSettingsModal> extends true
  ? CaptionSettingsSelector
  : AreEqual<Component, typeof CaptionsBanner> extends true
  ? CaptionsBannerSelector
  : AreEqual<Component, typeof StartCaptionsButton> extends true
  ? StartCaptionsButtonSelector
  : AreEqual<Component, typeof RaiseHandButton> extends true
  ? EmptySelector
  : undefined