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); }