Files
jitsi-meet/react/features/subtitles/functions.ts

13 lines
436 B
TypeScript

import { IReduxState } from '../app/types';
import { canAddTranscriber, isTranscribing } from '../transcribing/functions';
/**
* Checks whether the participant can start the subtitles.
*
* @param {IReduxState} state - The redux state.
* @returns {boolean} - True if the participant can start the subtitles.
*/
export function canStartSubtitles(state: IReduxState) {
return canAddTranscriber(state) || isTranscribing(state);
}