// @flow import React from 'react'; import { View, Text } from 'react-native'; import BaseTheme from '../../../base/ui/components/BaseTheme.native'; import TimeElapsed from './TimeElapsed'; import style from './styles'; type Props = { /** * The name of the participant. */ displayName: string, /** * The total milliseconds the participant has been dominant speaker. */ dominantSpeakerTime: number, /** * The id of the user. */ participantId: string, /** * True if the participant is no longer in the meeting. */ hasLeft: boolean, /** * True if the participant is currently the dominant speaker. */ isDominantSpeaker: boolean }; const SpeakerStatsItem = (props: Props) => { /** * @inheritdoc * @returns {ReactElement} */ const dotColor = props.isDominantSpeaker ? BaseTheme.palette.icon05 : BaseTheme.palette.icon03; return ( { props.displayName } ); }; export default SpeakerStatsItem;