Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

ModeratorIndicator.tsx 867B

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