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.

ClosedCaptionButton.web.js 695B

12345678910111213141516171819202122232425
  1. // @flow
  2. import { translate } from '../../base/i18n';
  3. import { IconClosedCaption } from '../../base/icons';
  4. import { connect } from '../../base/redux';
  5. import {
  6. AbstractClosedCaptionButton,
  7. _abstractMapStateToProps
  8. } from './AbstractClosedCaptionButton';
  9. /**
  10. * A button which starts/stops the transcriptions.
  11. */
  12. class ClosedCaptionButton
  13. extends AbstractClosedCaptionButton {
  14. accessibilityLabel = 'toolbar.accessibilityLabel.cc';
  15. icon = IconClosedCaption;
  16. tooltip = 'transcribing.ccButtonTooltip';
  17. label = 'toolbar.startSubtitles';
  18. toggledLabel = 'toolbar.stopSubtitles';
  19. }
  20. export default translate(connect(_abstractMapStateToProps)(ClosedCaptionButton));