bigbluebutton-Github/bigbluebutton-html5/imports/ui/components/sidebar-navigation/container.jsx

22 lines
631 B
React
Raw Normal View History

2021-05-18 04:25:07 +08:00
import React from 'react';
import NewLayoutContext from '../layout/context/context';
import SidebarNavigation from './component';
const SidebarNavigationContainer = (props) => {
const { newLayoutContextState, newLayoutContextDispatch, openPanel } = props;
const { output } = newLayoutContextState;
const { sidebarNavigation } = output;
if (sidebarNavigation.display === false) return null;
return (
<SidebarNavigation
{...sidebarNavigation}
openPanel={openPanel}
contextDispatch={newLayoutContextDispatch}
/>
);
};
export default NewLayoutContext.withConsumer(SidebarNavigationContainer);