2023-02-09 12:37:03 +00:00
|
|
|
/* eslint-disable lines-around-comment */
|
|
|
|
|
2021-12-15 13:18:41 +00:00
|
|
|
import React from 'react';
|
2017-07-10 22:29:44 +00:00
|
|
|
|
2023-02-09 12:37:03 +00:00
|
|
|
// @ts-ignore
|
2023-02-09 12:11:34 +00:00
|
|
|
import { IconModerator } from '../../../base/icons';
|
|
|
|
// @ts-ignore
|
2019-04-15 16:23:28 +00:00
|
|
|
import { BaseIndicator } from '../../../base/react';
|
2017-06-19 16:01:44 +00:00
|
|
|
|
|
|
|
/**
|
2018-10-30 05:02:23 +00:00
|
|
|
* The type of the React {@code Component} props of {@link ModeratorIndicator}.
|
2017-06-19 16:01:44 +00:00
|
|
|
*/
|
2018-10-30 05:02:23 +00:00
|
|
|
type Props = {
|
|
|
|
|
2017-08-15 22:14:49 +00:00
|
|
|
/**
|
2018-10-30 05:02:23 +00:00
|
|
|
* From which side of the indicator the tooltip should appear from.
|
2017-08-15 22:14:49 +00:00
|
|
|
*/
|
2023-02-09 12:11:34 +00:00
|
|
|
tooltipPosition: string;
|
2018-10-30 05:02:23 +00:00
|
|
|
};
|
2017-08-15 22:14:49 +00:00
|
|
|
|
2018-10-30 05:02:23 +00:00
|
|
|
/**
|
|
|
|
* React {@code Component} for showing a moderator icon with a tooltip.
|
|
|
|
*
|
2023-02-09 12:11:34 +00:00
|
|
|
* @returns {JSX.Element}
|
2018-10-30 05:02:23 +00:00
|
|
|
*/
|
2023-02-09 12:11:34 +00:00
|
|
|
const ModeratorIndicator = ({ tooltipPosition }: Props): JSX.Element => (
|
2021-12-15 13:18:41 +00:00
|
|
|
<BaseIndicator
|
2023-02-09 12:11:34 +00:00
|
|
|
icon = { IconModerator }
|
2022-11-08 10:24:32 +00:00
|
|
|
iconSize = { 16 }
|
2021-12-15 13:18:41 +00:00
|
|
|
tooltipKey = 'videothumbnail.moderator'
|
|
|
|
tooltipPosition = { tooltipPosition } />
|
|
|
|
);
|
2017-06-19 16:01:44 +00:00
|
|
|
|
|
|
|
export default ModeratorIndicator;
|