2018-08-24 18:12:12 +00:00
|
|
|
// @flow
|
|
|
|
|
|
|
|
import { translate } from '../../base/i18n';
|
2019-03-21 16:38:29 +00:00
|
|
|
import { connect } from '../../base/redux';
|
2018-08-24 18:12:12 +00:00
|
|
|
|
|
|
|
import {
|
|
|
|
AbstractClosedCaptionButton,
|
|
|
|
_abstractMapStateToProps
|
|
|
|
} from './AbstractClosedCaptionButton';
|
|
|
|
|
|
|
|
/**
|
|
|
|
* A button which starts/stops the transcriptions.
|
|
|
|
*/
|
|
|
|
class ClosedCaptionButton
|
|
|
|
extends AbstractClosedCaptionButton {
|
|
|
|
|
|
|
|
accessibilityLabel = 'toolbar.accessibilityLabel.cc';
|
|
|
|
iconName = 'closed_caption';
|
|
|
|
label = 'transcribing.start';
|
|
|
|
toggledIconName = 'closed_caption';
|
|
|
|
toggledLabel = 'transcribing.stop';
|
|
|
|
}
|
|
|
|
|
|
|
|
export default translate(connect(_abstractMapStateToProps)(
|
|
|
|
ClosedCaptionButton));
|