bigbluebutton-Github/bigbluebutton-html5/imports/ui/components/sidebar-navigation/container.jsx
Vitor Mateus De Almeida 1326f3f791 Add New Layout Manager
2021-05-17 17:25:07 -03:00

22 lines
631 B
JavaScript

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);