Some checks failed
Close stale issues and PRs / stale (push) Has been cancelled
16 lines
460 B
TypeScript
16 lines
460 B
TypeScript
import React from 'react';
|
|
import { Text } from 'react-native';
|
|
import { useSelector } from 'react-redux';
|
|
|
|
import { getParticipantCountForDisplay } from '../../../base/participants/functions';
|
|
|
|
import styles from './styles';
|
|
|
|
const ParticipantsCounter = () => {
|
|
const participantsCount = useSelector(getParticipantCountForDisplay);
|
|
|
|
return <Text style = { styles.participantsBadge }>{participantsCount}</Text>;
|
|
};
|
|
|
|
export default ParticipantsCounter;
|