// @flow import React, { useCallback } from 'react'; import { Button, Text, withTheme } from 'react-native-paper'; import { useDispatch } from 'react-redux'; import { translate } from '../../../base/i18n'; import { JitsiModal } from '../../../base/modal'; import { close } from '../../actions'; /** * {@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 ]); return ( {/* eslint-disable-next-line react/jsx-no-bind */} OLE ); } export default translate(withTheme(ParticipantsPane));