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.tsx 764B

1234567891011121314151617181920212223242526
  1. import React from 'react';
  2. import { connect } from 'react-redux';
  3. import { translate } from '../../base/i18n/functions';
  4. import Label from '../../base/label/components/web/Label';
  5. import Tooltip from '../../base/tooltip/components/Tooltip';
  6. import { Props, _mapStateToProps } from './AbstractTranscribingLabel';
  7. const TranscribingLabel = ({ _showLabel, t }: Props) => {
  8. if (!_showLabel) {
  9. return null;
  10. }
  11. return (
  12. <Tooltip
  13. content = { t('transcribing.labelToolTip') }
  14. position = { 'left' }>
  15. <Label
  16. className = 'recording-label'
  17. text = { t('transcribing.tr') } />
  18. </Tooltip>
  19. );
  20. };
  21. export default translate(connect(_mapStateToProps)(TranscribingLabel));