import React from 'react'
interface SideBarItemProps{
    index: any, icon: any ,title: string, route: string, showTitle: boolean
}
const SidebarItem = ({index, icon, title, route, showTitle} : SideBarItemProps) => {
    return (
      <a key={index} href={route} className={showTitle ? 'dont-show-text' : ''}>
        {showTitle ? <div className="toggable"  >{title.toUpperCase()}</div> : ''}
        <img src={icon} alt="" />
        {title.toUpperCase()}
      </a>
    )
  }
export default SidebarItem