import { 
  DollarSign, 
  Handshake,
  Home,
  MessageCircle,
  Settings,
  Store,
  TrendingUp,
  Truck,
} from 'lucide-react'


interface LogistNavigationItem {
  id: string
  label: string
  icon: typeof Home
  path: string
  isActive: (pathname: string) => boolean
  getNotification?: (data: { logisticsOrdersCount: number }, isCollapsed: boolean) => React.ReactNode
}

export const logistNavigation: LogistNavigationItem[] = [
  {
    id: 'home',
    label: 'Главная',
    icon: Home,
    path: '/logistics/home',
    isActive: (pathname) => pathname === '/logistics/home',
  },
  {
    id: 'logistics-orders',
    label: 'Перевозки',
    icon: Truck,
    path: '/logistics/orders',
    isActive: (pathname) => pathname.startsWith('/logistics/orders'),
    getNotification: (data) => (
      data.logisticsOrdersCount > 0 ? (
        <div className="absolute -top-1 -right-1 bg-red-500 text-white text-xs rounded-full min-w-[18px] h-[18px] flex items-center justify-center font-bold animate-pulse">
          {data.logisticsOrdersCount > 99 ? '99+' : data.logisticsOrdersCount}
        </div>
      ) : null
    ),
  },
  {
    id: 'messenger',
    label: 'Мессенджер',
    icon: MessageCircle,
    path: '/logistics/messenger',
    isActive: (pathname) => pathname.startsWith('/logistics/messenger'),
  },
  {
    id: 'economics',
    label: 'Экономика',
    icon: DollarSign,
    path: '/logistics/economics',
    isActive: (pathname) => pathname === '/logistics/economics',
  },
  {
    id: 'partners',
    label: 'Партнёры',
    icon: Handshake,
    path: '/logistics/partners',
    isActive: (pathname) => pathname.startsWith('/logistics/partners'),
  },
  {
    id: 'market',
    label: 'Маркет',
    icon: Store,
    path: '/logistics/market',
    isActive: (pathname) => pathname.startsWith('/logistics/market'),
  },
  {
    id: 'exchange',
    label: 'Биржа',
    icon: TrendingUp,
    path: '/logistics/exchange',
    isActive: (pathname) => pathname.startsWith('/logistics/exchange'),
  },
  {
    id: 'settings',
    label: 'Настройки профиля',
    icon: Settings,
    path: '/logistics/settings',
    isActive: (pathname) => pathname === '/logistics/settings',
  },
]