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 && }
{/* Sidebar is deprecated as we shift to the approach for storing collections as a file tree on the filesystem itself */} {/*
dispatch(toggleLeftMenuBar())} className="flex flex-col px-1 py-2 cursor-pointer text-gray-500 hover:text-gray-700" > {!leftMenuBarOpen && }
*/}
); }; export default Sidebar;