您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

RaisedHandsCountLabel.js 793B

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