jiti-meet/react/features/speaker-stats/components/native/SpeakerStats.js

34 lines
805 B
JavaScript
Raw Normal View History

import React, { useEffect } from 'react';
import { useDispatch } from 'react-redux';
import JitsiScreen from '../../../base/modal/components/JitsiScreen';
import { resetSearchCriteria } from '../../actions';
import SpeakerStatsList from './SpeakerStatsList';
import SpeakerStatsSearch from './SpeakerStatsSearch';
import style from './styles';
/**
* Component that renders the list of speaker stats.
*
* @returns {React$Element<any>}
*/
const SpeakerStats = () => {
const dispatch = useDispatch();
useEffect(() => {
dispatch(resetSearchCriteria());
}, []);
return (
<JitsiScreen
style = { style.speakerStatsContainer }>
<SpeakerStatsSearch />
<SpeakerStatsList />
</JitsiScreen>
);
};
export default SpeakerStats;