mirror of
https://gitcode.com/GitHub_Trending/ji/jitsi-meet.git
synced 2026-05-14 19:37:47 +00:00
32 lines
789 B
TypeScript
32 lines
789 B
TypeScript
import React, { Component } from 'react';
|
|
import { connect } from 'react-redux';
|
|
|
|
import { translate } from '../../base/i18n/functions';
|
|
import Label from '../../base/label/components/native/Label';
|
|
|
|
import { IProps, _mapStateToProps } from './AbstractTranscribingLabel';
|
|
|
|
/**
|
|
* React {@code Component} for displaying a label when a transcriber is in the
|
|
* conference.
|
|
*
|
|
* @augments Component
|
|
*/
|
|
class TranscribingLabel extends Component<IProps> {
|
|
|
|
/**
|
|
* 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));
|