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

TranscribingLabel.web.tsx 818B

12345678910111213141516171819202122232425262728
  1. import React from 'react';
  2. import { useTranslation } from 'react-i18next';
  3. import { useSelector } from 'react-redux';
  4. import { IReduxState } from '../../app/types';
  5. import Label from '../../base/label/components/web/Label';
  6. import Tooltip from '../../base/tooltip/components/Tooltip';
  7. const TranscribingLabel = () => {
  8. const _showLabel = useSelector((state: IReduxState) => state['features/transcribing'].isTranscribing);
  9. const { t } = useTranslation();
  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 TranscribingLabel;