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 635B

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