2023-05-02 11:09:38 +03:00
|
|
|
import { WithTranslation } from 'react-i18next';
|
2018-09-11 12:16:01 +02:00
|
|
|
|
2023-04-03 13:49:19 +03:00
|
|
|
import { translate } from '../../base/i18n/functions';
|
2023-05-02 11:09:38 +03:00
|
|
|
import ExpandedLabel, { IProps as AbstractProps } from '../../base/label/components/native/ExpandedLabel';
|
2018-09-11 12:16:01 +02:00
|
|
|
|
2023-05-02 11:09:38 +03:00
|
|
|
type Props = AbstractProps & WithTranslation;
|
2018-09-11 12:16:01 +02:00
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* A react {@code Component} that implements an expanded label as tooltip-like
|
|
|
|
|
* component to explain the meaning of the {@code TranscribingLabel}.
|
|
|
|
|
*/
|
|
|
|
|
class TranscribingExpandedLabel extends ExpandedLabel<Props> {
|
|
|
|
|
/**
|
|
|
|
|
* Returns the label specific text of this {@code ExpandedLabel}.
|
|
|
|
|
*
|
|
|
|
|
* @returns {string}
|
|
|
|
|
*/
|
|
|
|
|
_getLabel() {
|
|
|
|
|
return this.props.t('transcribing.expandedLabel');
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export default translate(TranscribingExpandedLabel);
|