import React, { Component } from 'react'; import { WithTranslation } from 'react-i18next'; import { connect } from 'react-redux'; import { IReduxState } from '../../app/types'; import { translate } from '../../base/i18n/functions'; import Label from '../../base/label/components/native/Label'; /** * The type of the React {@code Component} props of {@link TranscribingLabel}. */ export interface IProps extends WithTranslation { /** * True if the label needs to be rendered, false otherwise. */ _showLabel: boolean; } /** * React {@code Component} for displaying a label when a transcriber is in the * conference. * * @augments Component */ class TranscribingLabel extends Component { /** * Renders the platform-specific label component. * * @inheritdoc */ render() { if (!this.props._showLabel) { return null; } return