2017-07-10 22:29:44 +00:00
|
|
|
import React, { Component } from 'react';
|
|
|
|
|
2017-06-19 16:01:44 +00:00
|
|
|
import BaseIndicator from './BaseIndicator';
|
|
|
|
|
|
|
|
/**
|
|
|
|
* React {@code Component} for showing a moderator icon with a tooltip.
|
|
|
|
*
|
2017-07-10 22:29:44 +00:00
|
|
|
* @extends Component
|
2017-06-19 16:01:44 +00:00
|
|
|
*/
|
2017-07-10 22:29:44 +00:00
|
|
|
class ModeratorIndicator extends Component {
|
2017-06-19 16:01:44 +00:00
|
|
|
/**
|
2017-07-10 22:29:44 +00:00
|
|
|
* Implements React's {@link Component#render()}.
|
2017-06-19 16:01:44 +00:00
|
|
|
*
|
2017-07-10 22:29:44 +00:00
|
|
|
* @inheritdoc
|
|
|
|
* @returns {ReactElement}
|
2017-06-19 16:01:44 +00:00
|
|
|
*/
|
2017-07-10 22:29:44 +00:00
|
|
|
render() {
|
|
|
|
return (
|
|
|
|
<BaseIndicator
|
|
|
|
className = 'focusindicator toolbar-icon right'
|
|
|
|
iconClassName = 'icon-star'
|
|
|
|
tooltipKey = 'videothumbnail.moderator' />
|
|
|
|
);
|
2017-06-19 16:01:44 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
export default ModeratorIndicator;
|