Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

TranscribingLabel.native.tsx 789B

12345678910111213141516171819202122232425262728293031
  1. import React, { Component } from 'react';
  2. import { connect } from 'react-redux';
  3. import { translate } from '../../base/i18n/functions';
  4. import Label from '../../base/label/components/native/Label';
  5. import { IProps, _mapStateToProps } from './AbstractTranscribingLabel';
  6. /**
  7. * React {@code Component} for displaying a label when a transcriber is in the
  8. * conference.
  9. *
  10. * @augments Component
  11. */
  12. class TranscribingLabel extends Component<IProps> {
  13. /**
  14. * Renders the platform-specific label component.
  15. *
  16. * @inheritdoc
  17. */
  18. render() {
  19. if (!this.props._showLabel) {
  20. return null;
  21. }
  22. return <Label text = { this.props.t('transcribing.tr') } />;
  23. }
  24. }
  25. export default translate(connect(_mapStateToProps)(TranscribingLabel));