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

26 lines
627 B
JavaScript

// @flow
import { connect } from 'react-redux';
import { translate } from '../../base/i18n/index';
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';
}
export default translate(connect(_abstractMapStateToProps)(
ClosedCaptionButton));