jiti-meet/react/features/transcribing/components/TranscribingLabel.native.js

34 lines
777 B
JavaScript
Raw Normal View History

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