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

33 lines
746 B
JavaScript
Raw Normal View History

/* @flow */
import React from 'react';
import { IconCrown } from '../../../base/icons';
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.
*/
tooltipPosition: string
};
/**
* React {@code Component} for showing a moderator icon with a tooltip.
*
* @returns {Component}
*/
const ModeratorIndicator = ({ tooltipPosition }: Props) => (
<BaseIndicator
icon = { IconCrown }
iconSize = { 16 }
tooltipKey = 'videothumbnail.moderator'
tooltipPosition = { tooltipPosition } />
);
export default ModeratorIndicator;