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.tsx 820B

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