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

20 lines
540 B
React
Raw Normal View History

2021-05-18 04:25:07 +08:00
import React from 'react';
2021-09-11 04:48:52 +08:00
import { layoutDispatch, layoutSelectOutput } from '../layout/context';
2021-05-18 04:25:07 +08:00
import SidebarNavigation from './component';
const SidebarNavigationContainer = () => {
2021-09-11 04:48:52 +08:00
const sidebarNavigation = layoutSelectOutput((i) => i.sidebarNavigation);
const layoutContextDispatch = layoutDispatch();
2021-05-18 04:25:07 +08:00
if (sidebarNavigation.display === false) return null;
return (
<SidebarNavigation
{...sidebarNavigation}
2021-09-11 04:48:52 +08:00
contextDispatch={layoutContextDispatch}
2021-05-18 04:25:07 +08:00
/>
);
};
export default SidebarNavigationContainer;