import React from 'react'; import { Text, View, ViewStyle } from 'react-native'; import Avatar from '../../../base/avatar/components/Avatar'; import StatelessAvatar from '../../../base/avatar/components/native/StatelessAvatar'; import { getInitials } from '../../../base/avatar/functions'; import BaseTheme from '../../../base/ui/components/BaseTheme.native'; import TimeElapsed from './TimeElapsed'; import style from './styles'; interface IProps { /** * The name of the participant. */ displayName: string; /** * The total milliseconds the participant has been dominant speaker. */ dominantSpeakerTime: number; /** * True if the participant is no longer in the meeting. */ hasLeft: boolean; /** * True if the participant is currently the dominant speaker. */ isDominantSpeaker: boolean; /** * The id of the user. */ participantId: string; } const SpeakerStatsItem = (props: IProps) => ( { props.hasLeft ? ( ) : ( ) } {props.displayName} ); export default SpeakerStatsItem;