import { FC } from 'react'; import { Container, Row } from 'components/layout'; import { useResponsiveLayout } from 'hooks'; import { ResizeMode, Video } from 'expo-av'; import { metrics } from 'config'; import { Text } from 'components/text'; import { ChatFill, Mic, Smiling } from 'icons'; import { Fab } from 'components/fab'; const { STYLES } = metrics; export const Direct: FC = ({ participants }) => { const { width, height, isMobile } = useResponsiveLayout(); const leftAvoid = isMobile ? 0 : STYLES.sideBarCollapseWidth; const topAvoid = STYLES.topBarHeight * 2; const perItemHeight = (height - topAvoid) / (participants.length - 1); const perItemWidth = (width - leftAvoid) / participants.length; return ( {participants.map(() => ( Sara } /> } /> ))} ); }; type ParticipantType = { id: string; uri: string; username: string; }; interface ParticipantsProps { participants: ParticipantType[]; }