import React from 'react' import { useSelector, useDispatch } from 'react-redux' import { CCloseButton, CSidebar, CSidebarBrand, CSidebarFooter, CSidebarHeader, CSidebarToggler, } from '@coreui/react' import CIcon from '@coreui/icons-react' import { AppSidebarNav } from './AppSidebarNav' import { logo } from 'src/assets/brand/logo' import { sygnet } from 'src/assets/brand/sygnet' // sidebar nav config import navigation from '../_nav' const AppSidebar = () => { const dispatch = useDispatch() const unfoldable = useSelector((state) => state.sidebarUnfoldable) const sidebarShow = useSelector((state) => state.sidebarShow) return ( { dispatch({ type: 'set', sidebarShow: visible }) }} > dispatch({ type: 'set', sidebarShow: false })} /> dispatch({ type: 'set', sidebarUnfoldable: !unfoldable })} /> ) } export default React.memo(AppSidebar)