2018-07-26 16:33:40 +00:00
|
|
|
// @flow
|
|
|
|
|
2019-03-21 16:38:29 +00:00
|
|
|
import { translate } from '../../base/i18n';
|
|
|
|
import { connect } from '../../base/redux';
|
2018-07-26 16:33:40 +00:00
|
|
|
|
2018-08-24 18:12:12 +00:00
|
|
|
import {
|
|
|
|
AbstractClosedCaptionButton,
|
|
|
|
_abstractMapStateToProps
|
|
|
|
} from './AbstractClosedCaptionButton';
|
2018-07-26 16:33:40 +00:00
|
|
|
|
|
|
|
/**
|
2018-08-24 18:12:12 +00:00
|
|
|
* A button which starts/stops the transcriptions.
|
2018-07-26 16:33:40 +00:00
|
|
|
*/
|
2018-08-24 18:12:12 +00:00
|
|
|
class ClosedCaptionButton
|
|
|
|
extends AbstractClosedCaptionButton {
|
2018-07-26 16:33:40 +00:00
|
|
|
|
2018-08-24 18:12:12 +00:00
|
|
|
accessibilityLabel = 'toolbar.accessibilityLabel.cc';
|
|
|
|
iconName = 'icon-closed_caption';
|
|
|
|
toggledIconName = 'icon-closed_caption toggled';
|
|
|
|
tooltip = 'transcribing.ccButtonTooltip';
|
2019-03-05 14:26:45 +00:00
|
|
|
label = 'toolbar.startSubtitles';
|
|
|
|
toggledLabel = 'toolbar.stopSubtitles';
|
2018-07-26 16:33:40 +00:00
|
|
|
}
|
|
|
|
|
2018-08-24 18:12:12 +00:00
|
|
|
export default translate(connect(_abstractMapStateToProps)(
|
|
|
|
ClosedCaptionButton));
|