You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

TranscribingLabel.native.js 776B

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