import { MenuItemType } from '@/app/types/layout'

type UserDropdownItemType = {
  label?: string
  icon?: string
  url?: string
  isDivider?: boolean
  isHeader?: boolean
  class?: string
}

export const userDropdownItems: UserDropdownItemType[] = [
  {
    label: 'Welcome back!',
    isHeader: true,
  },
  {
    label: 'Profile',
    icon: 'tablerUserCircle',
    url: '#',
  },
  {
    label: 'Account Settings',
    icon: 'tablerSettings2',
    url: '#',
  },
  {
    label: 'Support Center',
    icon: 'tablerHeadset',
    url: '#',
  },
  {
    isDivider: true,
  },
  {
    label: 'Déconnexion',
    icon: 'tablerLogout2',
    url: '/auth/logout',
  },
]

export const menuItems: MenuItemType[] = [
  // ---------------------------
  // Pilotage & Supervision
  // ---------------------------
  { label: 'Pilotage', isTitle: true },
  {
    label: 'Tableau de Bord',
    icon: 'lucideBarChart2',
    url: '/dcb-dashboard',
  },

  // ---------------------------
  // Transactions & Opérations
  // ---------------------------
  { label: 'Business & Transactions', isTitle: true },
  {
    label: 'Transactions DCB',
    icon: 'lucideCreditCard',
    url: '/transactions',
  },
  {
    label: 'Opérateurs',
    icon: 'lucideServer',
    isCollapsed: true,
    children: [
      { label: 'Paramètres d’Intégration', url: '/operators/config' },
      { label: 'Performance & Monitoring', url: '/operators/stats' },
    ],
  },

  // ---------------------------
  // Notifications & Communication
  // ---------------------------
  { label: 'Communication', isTitle: true },
  {
    label: 'Notifications',
    icon: 'lucideBell',
    isCollapsed: true,
    children: [
      { label: 'Liste des Notifications', url: '/notifications/list' },
      { label: 'Filtrage par Type', url: '/notifications/filters' },
      { label: 'Actions Automatiques', url: '/notifications/actions' },
    ],
  },
  {
    label: 'Webhooks',
    icon: 'lucideShare',
    isCollapsed: true,
    children: [
      { label: 'Historique', url: '/webhooks/history' },
      { label: 'Statut des Requêtes', url: '/webhooks/status' },
      { label: 'Relancer Webhook', url: '/webhooks/retry' },
    ],
  },

  { label: 'Abonnements', isTitle: true },
  { label: 'Gestion des Abonnements', icon: 'lucideRepeat', url: '/subscriptions' },
  { label: 'Abonnements par Merchant', icon: 'lucideStore', url: '/subscriptions/merchant' },

  { label: 'Paiements', isTitle: true },
  { label: 'Historique des Paiements', icon: 'lucideCreditCard', url: '/subscriptions/payments' },


  // ---------------------------
  // Utilisateurs & Sécurité
  // ---------------------------
  { label: 'Utilisateurs & Sécurité', isTitle: true },
  {
    label: 'Utilisateurs Hub',
    icon: 'lucideUsers',
    isCollapsed: true,
    children: [
      { label: 'Liste des Utilisateurs', url: '/hub-users-management' },
    ],
  },

  {
    label: 'Utilisateurs Merchants/Partners',
    icon: 'lucideStore',
      url: '/merchant-users-management'
  },
  

  // ---------------------------
  // Paramètres & Intégrations
  // ---------------------------
  { label: 'Configurations', isTitle: true },
  { label: 'Merchant Configs', icon: 'lucideStore', url: '/merchant-configs' },
  { label: 'Paramètres Système', icon: 'lucideSettings', url: '/settings' },
  { label: 'Intégrations Externes', icon: 'lucidePlug', url: '/integrations' },

  // ---------------------------
  // Support & Profil
  // ---------------------------
  { label: 'Support & Profil', isTitle: true },
  { label: 'Support', icon: 'lucideLifeBuoy', url: '/support' },
  { label: 'Mon Profil', icon: 'lucideUser', url: '/profile' },

  // ---------------------------
  // Informations
  // ---------------------------
  { label: 'Informations', isTitle: true },
  { label: 'Documentation', icon: 'lucideBookOpen', url: '/documentation' },
  { label: 'Aide', icon: 'lucideHelpCircle', url: '/help' },
  { label: 'À propos', icon: 'lucideInfo', url: '/about' },
]
