import * as icon from '@mdi/js';
import { MenuAsideItem } from './interfaces'

const menuAside: MenuAsideItem[] = [
  // Common
  {
    href: '/dashboard',
    icon: icon.mdiStarFourPoints,
    label: 'Studio Hub',
    roles: ['Administrator', 'Platform Owner', 'Trust & Safety Lead']
  },
  {
    href: '/dashboard',
    icon: icon.mdiStarFourPoints,
    label: 'Studio Hub',
    roles: ['Verified Business Owner']
  },

  // Admin Only
  {
    href: '/users/users-list',
    label: 'Clients',
    icon: icon.mdiAccountHeart,
    permissions: 'READ_USERS',
    roles: ['Administrator', 'Platform Owner']
  },
  {
    href: '/categories/categories-list',
    label: 'Beauty Categories',
    icon: icon.mdiLipstick,
    permissions: 'READ_CATEGORIES',
    roles: ['Administrator', 'Platform Owner']
  },
  {
    href: '/locations/locations-list',
    label: 'Regions',
    icon: icon.mdiMapMarkerRadius,
    permissions: 'READ_LOCATIONS',
    roles: ['Administrator', 'Platform Owner']
  },

  // Admin and Platform Owner see all service listings
  {
    href: '/businesses/businesses-list',
    label: 'Service Listings',
    icon: icon.mdiStorefront,
    permissions: 'READ_BUSINESSES',
    roles: ['Administrator', 'Platform Owner']
  },
  
  // Claim Requests (Admin Only)
  {
    href: '/claim_requests/claim_requests-list',
    label: 'Claim Requests',
    icon: icon.mdiShieldCheck,
    permissions: 'READ_CLAIM_REQUESTS',
    roles: ['Administrator', 'Platform Owner']
  },

  // Business Owner sees their My Listing page
  {
    href: '/my-listing',
    label: 'My Listing',
    icon: icon.mdiStorefront,
    roles: ['Verified Business Owner']
  },

  {
    href: '/leads/leads-list',
    label: 'Service Requests',
    icon: icon.mdiCalendarHeart,
    permissions: 'READ_LEADS',
    roles: ['Verified Business Owner']
  },
  {
    href: '/leads/leads-list',
    label: 'Leads',
    icon: icon.mdiCalendarHeart,
    permissions: 'READ_LEADS',
    roles: ['Administrator', 'Platform Owner']
  },

  {
    href: '/messages/messages-list',
    label: 'Consultations',
    icon: icon.mdiMessageProcessing,
    permissions: 'READ_MESSAGES'
  },

  {
    href: '/reviews/reviews-list',
    label: 'Love Letters',
    icon: icon.mdiStarFace,
    permissions: 'READ_REVIEWS',
    roles: ['Administrator', 'Platform Owner', 'Trust & Safety Lead']
  },
  {
    href: '/reviews/reviews-list',
    label: 'Client Love',
    icon: icon.mdiStarFace,
    permissions: 'READ_REVIEWS',
    roles: ['Verified Business Owner']
  },

  {
    href: '/verification_submissions/verification_submissions-list',
    label: 'Verification',
    icon: icon.mdiShieldCheck,
    permissions: 'READ_VERIFICATION_SUBMISSIONS',
    roles: ['Administrator', 'Platform Owner', 'Trust & Safety Lead']
  },

  // Placeholder for Billing and Team
  {
    href: '/billing',
    label: 'Earnings',
    icon: icon.mdiWallet,
    roles: ['Verified Business Owner']
  },
  {
    href: '/billing-settings',
    label: 'Global Billing',
    icon: icon.mdiFinance,
    roles: ['Administrator', 'Platform Owner']
  },

  // Moderator
  {
    href: '/audit_logs/audit_logs-list',
    label: 'Audit logs',
    icon: icon.mdiClipboardListOutline,
    permissions: 'READ_AUDIT_LOGS',
    roles: ['Administrator', 'Platform Owner']
  },

  // Profile/Settings
  {
    href: '/profile',
    label: 'My Profile',
    icon: icon.mdiAccountSettings,
  },
]

export default menuAside