/* eslint-disable lines-around-comment */ import React, { useCallback } from 'react'; import { View } from 'react-native'; import { useDispatch, useSelector } from 'react-redux'; import { openDialog, openSheet } from '../../../base/dialog/actions'; import { IconDotsHorizontal } from '../../../base/icons/svg'; import Button from '../../../base/ui/components/native/Button'; import IconButton from '../../../base/ui/components/native/IconButton'; import { BUTTON_TYPES } from '../../../base/ui/constants.native'; // @ts-ignore import MuteEveryoneDialog from '../../../video-menu/components/native/MuteEveryoneDialog'; import { isMoreActionsVisible, isMuteAllVisible } from '../../functions'; // @ts-ignore import { ContextMenuMore } from './ContextMenuMore'; // @ts-ignore import styles from './styles'; /** * Implements the participants pane footer component. * * @returns { JSX.Element} - The participants pane footer component. */ const ParticipantsPaneFooter = (): JSX.Element => { const dispatch = useDispatch(); const openMoreMenu = useCallback(() => dispatch(openSheet(ContextMenuMore)), [ dispatch ]); const muteAll = useCallback(() => dispatch(openDialog(MuteEveryoneDialog)), [ dispatch ]); const showMoreActions = useSelector(isMoreActionsVisible); const showMuteAll = useSelector(isMuteAllVisible); return ( { showMuteAll && (