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

RaisedHandsCountLabel.js 798B

1234567891011121314151617181920212223242526
  1. // @flow
  2. import React from 'react';
  3. import { useSelector } from 'react-redux';
  4. import { IconRaisedHand } from '../../../base/icons';
  5. import { Label } from '../../../base/label';
  6. import BaseTheme from '../../../base/ui/components/BaseTheme';
  7. import styles from './styles';
  8. const RaisedHandsCountLabel = () => {
  9. const raisedHandsCount = useSelector(state =>
  10. (state['features/base/participants'].raisedHandsQueue || []).length);
  11. return raisedHandsCount > 0 && (
  12. <Label
  13. icon = { IconRaisedHand }
  14. iconColor = { BaseTheme.palette.uiBackground }
  15. style = { styles.raisedHandsCountLabel }
  16. text = { raisedHandsCount }
  17. textStyle = { styles.raisedHandsCountLabelText } />
  18. );
  19. };
  20. export default RaisedHandsCountLabel;