import { SidebarNavItem } from '../SidebarNavItem/SidebarNavItem';

export const Sidebar = () => {
  const links = [
    { to: '/',         icon: 'fas fa-home',      label: 'Главная', end: true },
    { to: '/specialist',  icon: 'fas fa-user-md',   label: 'Врачи' },
    { to: '/lostDoctors',  icon: 'fas fa-address-card',   label: 'Врачи-потеряшки' },
    { to: '/infoclinic',  icon: 'fas fa-table',   label: 'Расписание ИК' },
    { to: '/prices',icon: 'fas fa-receipt',  label: 'Цены и услуги' },
    { to: '/promotions',icon: 'fas fa-percent',  label: 'Акции' },
    { to: '/departments',icon: 'fas fa-stethoscope',  label: 'Отделения' },
    { to: '/filials',icon: 'fas fa-building',  label: 'Филиалы' },
  ];

  return (
    <ul className={`navbar-nav bg-gradient-primary sidebar sidebar-dark accordion d-none d-lg-block`}>
      {links.map(({ to, icon, label, end }) => (
        <SidebarNavItem
          key={to}
          to={to}
          icon={icon}
          label={label}
          end={end}
        />
      ))}
    </ul>
  )
}