You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

functions.any.ts 436B

123456789101112
  1. import { IReduxState } from '../app/types';
  2. import { canAddTranscriber, isTranscribing } from '../transcribing/functions';
  3. /**
  4. * Checks whether the participant can start the subtitles.
  5. *
  6. * @param {IReduxState} state - The redux state.
  7. * @returns {boolean} - True if the participant can start the subtitles.
  8. */
  9. export function canStartSubtitles(state: IReduxState) {
  10. return canAddTranscriber(state) || isTranscribing(state);
  11. }