jiti-meet/react/features/large-video/functions.ts

15 lines
449 B
TypeScript

import { IReduxState } from '../app/types';
import { getParticipantById } from '../base/participants/functions';
/**
* Selector for the participant currently displaying on the large video.
*
* @param {Object} state - The redux state.
* @returns {Object}
*/
export function getLargeVideoParticipant(state: IReduxState) {
const { participantId } = state['features/large-video'];
return getParticipantById(state, participantId ?? '');
}