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

25 lines
645 B
JavaScript
Raw Normal View History

// @flow
import { translate } from '../../base/i18n';
2019-08-30 16:39:06 +00:00
import { IconClosedCaption } from '../../base/icons';
2019-03-21 16:38:29 +00:00
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';
2019-08-30 16:39:06 +00:00
icon = IconClosedCaption;
label = 'transcribing.start';
toggledLabel = 'transcribing.stop';
}
export default translate(connect(_abstractMapStateToProps)(
ClosedCaptionButton));