import React from 'react'; import { useSelector, useDispatch } from 'react-redux'; import { toggleLeftMenuBar } from 'providers/ReduxStore/slices/app' 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 leftMenuBarOpen = useSelector((state) => state.app.leftMenuBarOpen); const leftSidebarWidth = useSelector((state) => state.app.leftSidebarWidth); const dispatch = useDispatch(); return (
{leftMenuBarOpen && }
dispatch(toggleLeftMenuBar())} className="flex flex-col px-1 py-2 cursor-pointer text-gray-500 hover:text-gray-700" > {!leftMenuBarOpen && }
); }; export default Sidebar;