jiti-meet/react/features/filmstrip/components/web/ModeratorIndicator.tsx

35 lines
828 B
TypeScript
Raw Normal View History

2023-02-09 12:37:03 +00:00
/* eslint-disable lines-around-comment */
import React from 'react';
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';
/**
* The type of the React {@code Component} props of {@link ModeratorIndicator}.
*/
type Props = {
/**
* From which side of the indicator the tooltip should appear from.
*/
2023-02-09 12:11:34 +00:00
tooltipPosition: string;
};
/**
* React {@code Component} for showing a moderator icon with a tooltip.
*
2023-02-09 12:11:34 +00:00
* @returns {JSX.Element}
*/
2023-02-09 12:11:34 +00:00
const ModeratorIndicator = ({ tooltipPosition }: Props): JSX.Element => (
<BaseIndicator
2023-02-09 12:11:34 +00:00
icon = { IconModerator }
iconSize = { 16 }
tooltipKey = 'videothumbnail.moderator'
tooltipPosition = { tooltipPosition } />
);
export default ModeratorIndicator;