2018-08-16 14:34:26 -05:00
|
|
|
// @flow
|
|
|
|
|
|
|
|
|
|
import React, { Component } from 'react';
|
|
|
|
|
|
|
|
|
|
import { translate } from '../../base/i18n';
|
2021-04-08 11:35:26 +03:00
|
|
|
import { Label } from '../../base/label';
|
2019-03-21 17:38:29 +01:00
|
|
|
import { connect } from '../../base/redux';
|
2018-08-16 14:34:26 -05:00
|
|
|
|
2022-09-27 10:10:28 +03:00
|
|
|
import { type Props, _mapStateToProps } from './AbstractTranscribingLabel';
|
2018-08-16 14:34:26 -05:00
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* React {@code Component} for displaying a label when a transcriber is in the
|
|
|
|
|
* conference.
|
|
|
|
|
*
|
2021-11-04 22:10:43 +01:00
|
|
|
* @augments Component
|
2018-08-16 14:34:26 -05:00
|
|
|
*/
|
|
|
|
|
class TranscribingLabel extends Component<Props> {
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Renders the platform-specific label component.
|
|
|
|
|
*
|
|
|
|
|
* @inheritdoc
|
|
|
|
|
*/
|
|
|
|
|
render() {
|
2018-09-12 17:10:12 +02:00
|
|
|
if (!this.props._showLabel) {
|
|
|
|
|
return null;
|
|
|
|
|
}
|
|
|
|
|
|
2021-04-08 11:35:26 +03:00
|
|
|
return <Label text = { this.props.t('transcribing.tr') } />;
|
2018-08-16 14:34:26 -05:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2018-09-12 17:10:12 +02:00
|
|
|
export default translate(connect(_mapStateToProps)(TranscribingLabel));
|