// @flow import React from 'react'; import { View, Text } from 'react-native'; import { Avatar, StatelessAvatar } from '../../../base/avatar'; import { getInitials } from '../../../base/avatar/functions'; 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) => ( { props.hasLeft ? ( ) : ( ) } {props.displayName} ); export default SpeakerStatsItem;