2023-02-03 13:31:00 +02:00
|
|
|
import React from 'react';
|
2023-07-13 12:27:34 +03:00
|
|
|
import { useTranslation } from 'react-i18next';
|
|
|
|
|
import { useSelector } from 'react-redux';
|
2023-02-03 13:31:00 +02:00
|
|
|
|
2023-07-13 12:27:34 +03:00
|
|
|
import { IReduxState } from '../../app/types';
|
2023-02-03 13:31:00 +02:00
|
|
|
import Label from '../../base/label/components/web/Label';
|
2023-03-17 12:23:51 +02:00
|
|
|
import Tooltip from '../../base/tooltip/components/Tooltip';
|
2023-02-03 13:31:00 +02:00
|
|
|
|
2023-07-13 12:27:34 +03:00
|
|
|
const TranscribingLabel = () => {
|
|
|
|
|
const _showLabel = useSelector((state: IReduxState) => state['features/transcribing'].isTranscribing);
|
|
|
|
|
const { t } = useTranslation();
|
2023-02-03 13:31:00 +02:00
|
|
|
|
|
|
|
|
if (!_showLabel) {
|
|
|
|
|
return null;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return (
|
|
|
|
|
<Tooltip
|
|
|
|
|
content = { t('transcribing.labelToolTip') }
|
|
|
|
|
position = { 'left' }>
|
|
|
|
|
<Label
|
|
|
|
|
className = 'recording-label'
|
|
|
|
|
text = { t('transcribing.tr') } />
|
|
|
|
|
</Tooltip>
|
|
|
|
|
);
|
|
|
|
|
};
|
|
|
|
|
|
2023-07-13 12:27:34 +03:00
|
|
|
export default TranscribingLabel;
|