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.native.js 645B

123456789101112131415161718192021222324
  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. label = 'transcribing.start';
  17. toggledLabel = 'transcribing.stop';
  18. }
  19. export default translate(connect(_abstractMapStateToProps)(
  20. ClosedCaptionButton));