import React from 'react'; import { mdiLogout, mdiClose } from '@mdi/js'; import BaseIcon from './BaseIcon'; import AsideMenuList from './AsideMenuList'; import { MenuAsideItem } from '../interfaces'; import { useAppSelector } from '../stores/hooks'; import Link from 'next/link'; type Props = { menu: MenuAsideItem[]; className?: string; onAsideLgCloseClick: () => void; }; export default function AsideMenuLayer({ menu, className = '', ...props }: Props) { const asideStyle = useAppSelector((state) => state.style.asideStyle); const asideBrandStyle = useAppSelector( (state) => state.style.asideBrandStyle, ); const asideScrollbarsStyle = useAppSelector( (state) => state.style.asideScrollbarsStyle, ); const darkMode = useAppSelector((state) => state.style.darkMode); const handleAsideLgCloseClick = (e: React.MouseEvent) => { e.preventDefault(); props.onAsideLgCloseClick(); }; return ( ); }