jiti-meet/react/features/subtitles/components/ClosedCaptionButton.web.js

27 lines
707 B
JavaScript
Raw Normal View History

// @flow
2019-03-21 16:38:29 +00:00
import { translate } from '../../base/i18n';
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';
iconName = 'icon-closed_caption';
toggledIconName = 'icon-closed_caption toggled';
tooltip = 'transcribing.ccButtonTooltip';
label = 'toolbar.startSubtitles';
toggledLabel = 'toolbar.stopSubtitles';
}
export default translate(connect(_abstractMapStateToProps)(
ClosedCaptionButton));