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