import React from 'react'; import actions from 'providers/Store/actions'; import { useStore } from 'providers/Store'; import Collections from './Collections'; import MenuBar from './MenuBar'; import TitleBar from './TitleBar'; import { IconSearch, IconChevronsRight} from '@tabler/icons'; import StyledWrapper from './StyledWrapper'; const Sidebar = () => { const [store, storeDispatch] = useStore(); const { asideWidth, leftMenuBarOpen } = store; const showMenuBar = () => { storeDispatch({ type: actions.TOGGLE_LEFT_MENUBAR }) }; return (
{leftMenuBarOpen && }
{!leftMenuBarOpen && }
); }; export default Sidebar;