import React from 'react'; import PropTypes from 'prop-types'; import OuterClick from './../OuterClick'; import { withPageConfig } from './../Layout'; import { SidebarContent } from './SidebarContent'; const Sidebar = (props) => ( { /* Enable OuterClick only in sidebar overlay mode */} props.pageConfig.toggleSidebar() } > ); Sidebar.propTypes = { children: PropTypes.node, slim: PropTypes.bool, collapsed: PropTypes.bool, animationsDisabled: PropTypes.bool, pageConfig: PropTypes.object }; const cfgSidebar = withPageConfig(Sidebar); export { cfgSidebar as Sidebar };