import type { RouteRecordRaw } from 'vue-router'

export const feedbackPublicRoutes: RouteRecordRaw[] = [
  {
    path: '/feedback/submit',
    name: 'feedback-submit',
    component: () => import('./pages/FeedbackSubmit.vue'),
    meta: { public: true, module: 'feedback', title: 'Maklum Balas' },
  },
]

export const feedbackLayoutRoutes: RouteRecordRaw[] = [
  {
    path: 'feedback',
    name: 'list-feedback',
    component: () => import('./pages/FeedbackList.vue'),
    meta: {
      title: 'Senarai Maklum Balas',
      module: 'feedback',
      permission: 'lihat maklum balas',
    },
  },
  {
    path: 'feedback/:id',
    name: 'view-feedback',
    component: () => import('./pages/FeedbackDetail.vue'),
    meta: {
      title: 'Butiran Maklum Balas',
      module: 'feedback',
      permission: 'lihat maklum balas',
    },
  },
]
