import type { Menu } from '@/core/types/menu'
import { userMenu } from '@/modules/user'
import { roleMenu } from '@/modules/role'
import { membershipApplicationMenu } from '@/modules/membership-application'
import { activityMenu } from '@/modules/activity'
import { dashboardMenu } from '@/modules/dashboard/menu'
import { externalSystemMenu } from '@/modules/external-system/menu'
import { activityLogMenu } from '@/modules/activity-log/menu'

export type { Menu }

const mainMenu: (string | Menu)[] = [
  'Umum',
  ...dashboardMenu,
  ...externalSystemMenu,
  ...activityMenu,
  'Teknologi Maklumat',
  ...roleMenu,
  ...activityLogMenu,
  'Pentadbiran',
  ...membershipApplicationMenu,
  ...userMenu,
]

export default mainMenu
