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