// Copyright 2020-2021 Amazon.com, Inc. or its affiliates. All Rights Reserved. // SPDX-License-Identifier: Apache-2.0 import React from 'react'; import { ControlBar, AudioInputControl, VideoInputControl, ContentShareControl, AudioOutputControl, ControlBarButton, useUserActivityState, Dots, } from 'amazon-chime-sdk-component-library-react'; import EndMeetingControl from '../EndMeetingControl'; import { useNavigation } from '../../providers/NavigationProvider'; import { StyledControls } from './Styled'; const MeetingControls = () => { const { toggleNavbar, closeRoster, showRoster, closeChat, showChat } = useNavigation(); const { isUserActive } = useUserActivityState(); const handleToggle = () => { if (showRoster) { closeRoster(); } if (showChat) { closeChat(); } toggleNavbar(); }; return ( } onClick={handleToggle} label="Menu" /> ); }; export default MeetingControls;