bigbluebutton-Github/bigbluebutton-html5/imports/ui/components/sidebar-navigation/container.jsx
2021-09-09 10:55:07 -03:00

22 lines
603 B
JavaScript

import React from 'react';
import { LayoutContextFunc } from '../layout/context';
import SidebarNavigation from './component';
const SidebarNavigationContainer = () => {
const { layoutContextSelector } = LayoutContextFunc;
const sidebarNavigation = layoutContextSelector.selectOutput((i) => i.sidebarNavigation);
const layoutDispatch = layoutContextSelector.layoutDispatch();
if (sidebarNavigation.display === false) return null;
return (
<SidebarNavigation
{...sidebarNavigation}
contextDispatch={layoutDispatch}
/>
);
};
export default SidebarNavigationContainer;