import { ReactNode } from 'react'; import { NavLink, NavLinkProps } from 'react-router-dom'; import { CSSTransition } from 'react-transition-group'; import { AnimationTimeout } from '@/shared/config'; import styles from '../Menu.module.scss'; type Props = NavLinkProps & { icon: ReactNode; text: string; children?: ReactNode; isFullWidth: boolean; }; const NavigationItem = ({ to, icon, text, children, isFullWidth, end }: Props) => ( {icon}
{text} {children}
); export { NavigationItem };