import React from 'react'; import { LayoutContextFunc } from '../layout/context'; import SidebarNavigation from './component'; const SidebarNavigationContainer = (props) => { const { layoutContextState, layoutContextDispatch, openPanel } = props; const { output } = layoutContextState; const { sidebarNavigation } = output; if (sidebarNavigation.display === false) return null; return ( ); }; export default LayoutContextFunc.withConsumer(SidebarNavigationContainer);