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: 'Lock Screen',
    icon: 'tablerLock',
    url: '#',
  },
  {
    label: 'Log Out',
    icon: 'tablerLogout2',
    url: '#',
    class: 'fw-semibold',
  },
]

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: 'Gestions Merchants/Partners',
    icon: 'lucideStore',
      url: '/merchant-partners'
  },
  {
    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' },
    ],
  },

  // ---------------------------
  // Utilisateurs & Sécurité
  // ---------------------------
  { label: 'Utilisateurs & Sécurité', isTitle: true },
  {
    label: 'Gestion des Utilisateurs',
    icon: 'lucideUsers',
    isCollapsed: true,
    children: [
      { label: 'Liste des Utilisateurs', url: '/users' },
    ],
  },
  {
    label: 'Authentification',
    icon: 'lucideFingerprint',
    isCollapsed: true,
    children: [
      { label: 'Login / Logout', url: '/auth/login' },
      { label: 'Réinitialisation Mot de Passe', url: '/auth/reset-password' },
      { label: 'Gestion des Sessions', url: '/auth/sessions' },
    ],
  },

  // ---------------------------
  // Paramètres & Intégrations
  // ---------------------------
  { label: 'Configuration', isTitle: true },
  { 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' },
]
