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

TranscribingLabel.web.tsx 812B

12345678910111213141516171819202122232425262728
  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. // eslint-disable-next-line lines-around-comment
  6. // @ts-ignore
  7. import { Tooltip } from '../../base/tooltip';
  8. import { Props, _mapStateToProps } from './AbstractTranscribingLabel';
  9. const TranscribingLabel = ({ _showLabel, t }: Props) => {
  10. if (!_showLabel) {
  11. return null;
  12. }
  13. return (
  14. <Tooltip
  15. content = { t('transcribing.labelToolTip') }
  16. position = { 'left' }>
  17. <Label
  18. className = 'recording-label'
  19. text = { t('transcribing.tr') } />
  20. </Tooltip>
  21. );
  22. };
  23. export default translate(connect(_mapStateToProps)(TranscribingLabel));