mirror of
https://gitcode.com/GitHub_Trending/ji/jitsi-meet.git
synced 2026-05-16 23:17:46 +00:00
- implement breakout-rooms - integrated into the participants panel - managed by moderators - moderators can send participants to breakout-rooms - participants can join breakout rooms by themselve - participants can leave breakout rooms anytime Co-authored-by: Robert Pintilii <robert.pin9@gmail.com> Co-authored-by: Saúl Ibarra Corretgé <saghul@jitsi.org>
32 lines
846 B
JavaScript
32 lines
846 B
JavaScript
// @flow
|
|
|
|
import React, { useCallback } from 'react';
|
|
import { useTranslation } from 'react-i18next';
|
|
import { Button } from 'react-native-paper';
|
|
import { useDispatch } from 'react-redux';
|
|
|
|
import { createBreakoutRoom } from '../../actions';
|
|
|
|
import styles from './styles';
|
|
|
|
const AddBreakoutRoomButton = () => {
|
|
const { t } = useTranslation();
|
|
const dispatch = useDispatch();
|
|
|
|
const onAdd = useCallback(() =>
|
|
dispatch(createBreakoutRoom())
|
|
, [ dispatch ]);
|
|
|
|
return (
|
|
<Button
|
|
accessibilityLabel = { t('breakoutRooms.actions.add') }
|
|
children = { t('breakoutRooms.actions.add') }
|
|
labelStyle = { styles.addButtonLabel }
|
|
mode = 'contained'
|
|
onPress = { onAdd }
|
|
style = { styles.addButton } />
|
|
);
|
|
};
|
|
|
|
export default AddBreakoutRoomButton;
|