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

interface FulfillmentNavigationItem {
  id: string
  label: string
  icon: typeof Home
  path: string
  isActive: (pathname: string) => boolean
  hasNotification?: boolean
}

export const fulfillmentNavigation: FulfillmentNavigationItem[] = [
  {
    id: 'home',
    label: 'Главная',
    icon: Home,
    path: '/fulfillment/home',
    isActive: (pathname) => pathname === '/fulfillment/home',
  },
  {
    id: 'messenger',
    label: 'Мессенджер',
    icon: MessageCircle,
    path: '/fulfillment/messenger',
    isActive: (pathname) => pathname.startsWith('/fulfillment/messenger'),
  },
  {
    id: 'economics',
    label: 'Экономика',
    icon: DollarSign,
    path: '/fulfillment/economics',
    isActive: (pathname) => pathname === '/fulfillment/economics',
  },
  {
    id: 'partners',
    label: 'Партнёры',
    icon: Handshake,
    path: '/fulfillment/partners',
    isActive: (pathname) => pathname.startsWith('/fulfillment/partners'),
  },
  {
    id: 'market',
    label: 'Маркет',
    icon: Store,
    path: '/fulfillment/market',
    isActive: (pathname) => pathname.startsWith('/fulfillment/market'),
  },
  {
    id: 'services',
    label: 'Услуги',
    icon: Wrench,
    path: '/fulfillment/services',
    isActive: (pathname) => pathname.startsWith('/fulfillment/services'),
  },
  {
    id: 'employees',
    label: 'Сотрудники',
    icon: Users,
    path: '/fulfillment/employees',
    isActive: (pathname) => pathname.startsWith('/fulfillment/employees'),
  },
  {
    id: 'supplies',
    label: 'Входящие поставки',
    icon: Truck,
    path: '/fulfillment/supplies/goods/new',
    isActive: (pathname) => pathname.startsWith('/fulfillment/supplies'),
    hasNotification: true,
  },
  {
    id: 'warehouse',
    label: 'Склад',
    icon: Warehouse,
    path: '/fulfillment/warehouse',
    isActive: (pathname) => pathname.startsWith('/fulfillment/warehouse'),
  },
  {
    id: 'statistics',
    label: 'Статистика',
    icon: BarChart3,
    path: '/fulfillment/statistics',
    isActive: (pathname) => pathname.startsWith('/fulfillment/statistics'),
  },
  {
    id: 'exchange',
    label: 'Биржа',
    icon: TrendingUp,
    path: '/fulfillment/exchange',
    isActive: (pathname) => pathname.startsWith('/fulfillment/exchange'),
  },
  {
    id: 'settings',
    label: 'Настройки профиля',
    icon: Settings,
    path: '/fulfillment/settings',
    isActive: (pathname) => pathname.startsWith('/fulfillment/settings'),
  },
]
