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

22 lines
617 B
React
Raw Normal View History

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