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

22 lines
603 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 = () => {
const { layoutContextSelector } = LayoutContextFunc;
const sidebarNavigation = layoutContextSelector.selectOutput((i) => i.sidebarNavigation);
const layoutDispatch = layoutContextSelector.layoutDispatch();
2021-05-18 04:25:07 +08:00
if (sidebarNavigation.display === false) return null;
return (
<SidebarNavigation
{...sidebarNavigation}
contextDispatch={layoutDispatch}
2021-05-18 04:25:07 +08:00
/>
);
};
export default SidebarNavigationContainer;