bigbluebutton-Github/bigbluebutton-html5/imports/ui/components/sidebar-navigation/container.jsx
2021-09-10 17:48:52 -03:00

20 lines
540 B
JavaScript

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