GetCallingSelector type
適用于指定元件的選取器特定類型。
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
: undefined