You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

ModeratorIndicator.js 746B

1234567891011121314151617181920212223242526272829303132
  1. /* @flow */
  2. import React from 'react';
  3. import { IconCrown } from '../../../base/icons';
  4. import { BaseIndicator } from '../../../base/react';
  5. /**
  6. * The type of the React {@code Component} props of {@link ModeratorIndicator}.
  7. */
  8. type Props = {
  9. /**
  10. * From which side of the indicator the tooltip should appear from.
  11. */
  12. tooltipPosition: string
  13. };
  14. /**
  15. * React {@code Component} for showing a moderator icon with a tooltip.
  16. *
  17. * @returns {Component}
  18. */
  19. const ModeratorIndicator = ({ tooltipPosition }: Props) => (
  20. <BaseIndicator
  21. icon = { IconCrown }
  22. iconSize = { 15 }
  23. tooltipKey = 'videothumbnail.moderator'
  24. tooltipPosition = { tooltipPosition } />
  25. );
  26. export default ModeratorIndicator;