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

16 lines
394 B
JavaScript
Raw Normal View History

2021-07-20 08:37:52 +00:00
// @flow
import { getParticipantById } from '../base/participants';
/**
* Selector for the participant currently displaying on the large video.
*
* @param {Object} state - The redux state.
* @returns {Object}
*/
export function getLargeVideoParticipant(state: Object) {
const { participantId } = state['features/large-video'];
return getParticipantById(state, participantId);
}