import { faGlobe as domainsIcon, faHome as overviewIcon, faLink as createIcon, faList as listIcon, faTags as tagsIcon, } from '@fortawesome/free-solid-svg-icons'; import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'; import classNames from 'classnames'; import type { FC } from 'react'; import type { NavLinkProps } from 'react-router-dom'; import { NavLink, useLocation } from 'react-router-dom'; import './AsideMenu.scss'; export interface AsideMenuProps { routePrefix: string; showOnMobile?: boolean; } interface AsideMenuItemProps extends NavLinkProps { to: string; className?: string; } const AsideMenuItem: FC = ({ children, to, className, ...rest }) => ( classNames('aside-menu__item', className, { 'aside-menu__item--selected': isActive })} to={to} {...rest} > {children} ); export const AsideMenu: FC = ({ routePrefix, showOnMobile = false }) => { const { pathname } = useLocation(); const asideClass = classNames('aside-menu', { 'aside-menu--hidden': !showOnMobile, }); const buildPath = (suffix: string) => `${routePrefix}${suffix}`; return ( ); };