import type { RouteRecordRaw } from 'vue-router'

export const userLayoutRoutes: RouteRecordRaw[] = [
  {
    path: 'list-users',
    name: 'list-users',
    component: () => import('./pages/UserList.vue'),
    meta: { title: 'List Users', module: 'user', permission: 'lihat pengguna' },
  },
  {
    path: 'users/create',
    name: 'create-user',
    component: () => import('./pages/UserCreate.vue'),
    meta: { title: 'Create User', module: 'user', permission: 'daftar pengguna baru' },
  },
  {
    path: 'users/:id/edit',
    name: 'edit-user',
    component: () => import('./pages/UserEdit.vue'),
    meta: { title: 'Edit User', module: 'user', permission: 'kemaskini pengguna' },
  },
  {
    path: 'users/:id/profile',
    name: 'view-user',
    component: () => import('./pages/UserProfileView.vue'),
    meta: { title: 'View User Profile', module: 'user', permission: 'lihat pengguna' },
  },
]
