bigbluebutton-Github/bigbluebutton-html5/imports/ui/components/sidebar-navigation/container.jsx
2021-08-05 08:03:24 -03:00

22 lines
617 B
JavaScript

import React from 'react';
import { LayoutContextFunc } from '../layout/context';
import SidebarNavigation from './component';
const SidebarNavigationContainer = (props) => {
const { layoutContextState, layoutContextDispatch, openPanel } = props;
const { output } = layoutContextState;
const { sidebarNavigation } = output;
if (sidebarNavigation.display === false) return null;
return (
<SidebarNavigation
{...sidebarNavigation}
openPanel={openPanel}
contextDispatch={layoutContextDispatch}
/>
);
};
export default LayoutContextFunc.withConsumer(SidebarNavigationContainer);