// Copyright 2020-2021 Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: MIT-0
import React from 'react';
import MeetingRoster from '../MeetingRoster';
import Navigation from '.';
import { useNavigation } from '../../providers/NavigationProvider';
import Chat from '../Chat';
import { Flex } from 'amazon-chime-sdk-component-library-react';
const NavigationControl = () => {
const { showNavbar, showRoster, showChat } = useNavigation();
const view = () => {
if (showRoster && showChat) {
return (
);
}
if (showRoster) {
return ;
}
if (showChat) {
return ;
}
return null;
};
return (
<>
{showNavbar ? : null}
{view()}
>
);
};
export default NavigationControl;