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.web.js 1.1KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. // @flow
  2. import React, { Component } from 'react';
  3. import { translate } from '../../base/i18n';
  4. import { CircularLabel } from '../../base/label';
  5. import { connect } from '../../base/redux';
  6. import { Tooltip } from '../../base/tooltip';
  7. import { _mapStateToProps, type Props } from './AbstractTranscribingLabel';
  8. /**
  9. * React {@code Component} for displaying a label when a transcriber is in the
  10. * conference.
  11. *
  12. * @extends Component
  13. */
  14. class TranscribingLabel extends Component<Props> {
  15. /**
  16. * Implements React's {@link Component#render()}.
  17. *
  18. * @inheritdoc
  19. * @returns {ReactElement}
  20. */
  21. render() {
  22. if (!this.props._showLabel) {
  23. return null;
  24. }
  25. return (
  26. <Tooltip
  27. content = { this.props.t('transcribing.labelToolTip') }
  28. position = { 'left' }>
  29. <CircularLabel
  30. className = 'recording-label'
  31. label = { this.props.t('transcribing.tr') } />
  32. </Tooltip>
  33. );
  34. }
  35. }
  36. export default translate(connect(_mapStateToProps)(TranscribingLabel));