123456789101112131415161718192021222324 |
- // @flow
-
- import { translate } from '../../base/i18n';
- import { IconClosedCaption } from '../../base/icons';
- import { connect } from '../../base/redux';
-
- import {
- AbstractClosedCaptionButton,
- _abstractMapStateToProps
- } from './AbstractClosedCaptionButton';
-
- /**
- * A button which starts/stops the transcriptions.
- */
- class ClosedCaptionButton
- extends AbstractClosedCaptionButton {
- accessibilityLabel = 'toolbar.accessibilityLabel.cc';
- icon = IconClosedCaption;
- label = 'transcribing.start';
- toggledLabel = 'transcribing.stop';
- }
-
- export default translate(connect(_abstractMapStateToProps)(
- ClosedCaptionButton));
|