// @flow import React, { useCallback } from 'react'; import { useTranslation } from 'react-i18next'; import { View } from 'react-native'; import { Button, withTheme } from 'react-native-paper'; import { useDispatch } from 'react-redux'; import { Icon, IconClose, IconHorizontalPoints } from '../../../base/icons'; import { JitsiModal } from '../../../base/modal'; import { close } from '../../actions.any'; import { LobbyParticipantList } from './LobbyParticipantList'; import styles from './styles'; /** * {@code ParticipantsPane}'s React {@code Component} prop types. */ type Props = { /** * Theme used for styles. */ theme: Object } /** * Participant pane. * * @returns {React$Element} */ function ParticipantsPane({ theme }: Props) { const dispatch = useDispatch(); const closePane = useCallback( () => dispatch(close()), [ dispatch ]); const { t } = useTranslation(); const { palette } = theme; return (