2018-07-26 16:33:40 +00:00
|
|
|
// @flow
|
|
|
|
|
|
|
|
import { connect } from 'react-redux';
|
|
|
|
|
2018-08-24 18:12:12 +00:00
|
|
|
import { translate } from '../../base/i18n/index';
|
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';
|
2018-07-26 16:33:40 +00:00
|
|
|
}
|
|
|
|
|
2018-08-24 18:12:12 +00:00
|
|
|
export default translate(connect(_abstractMapStateToProps)(
|
|
|
|
ClosedCaptionButton));
|