2023-02-03 13:31:00 +02:00
|
|
|
import React from 'react';
|
|
|
|
|
import { connect } from 'react-redux';
|
|
|
|
|
|
|
|
|
|
import { translate } from '../../base/i18n/functions';
|
|
|
|
|
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-04-03 11:09:50 +03:00
|
|
|
import { IProps, _mapStateToProps } from './AbstractTranscribingLabel';
|
2023-02-03 13:31:00 +02:00
|
|
|
|
2023-04-03 11:09:50 +03:00
|
|
|
const TranscribingLabel = ({ _showLabel, t }: IProps) => {
|
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>
|
|
|
|
|
);
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
export default translate(connect(_mapStateToProps)(TranscribingLabel));
|