import type { RouteRecordRaw } from 'vue-router'

export const roleLayoutRoutes: RouteRecordRaw[] = [
  {
    path: 'list-roles',
    name: 'list-roles',
    component: () => import('./pages/RoleList.vue'),
    meta: { title: 'List Roles', module: 'role', permission: 'lihat peranan' },
  },
  {
    path: 'roles/create',
    name: 'create-role',
    component: () => import('./pages/RoleCreate.vue'),
    meta: { title: 'Create Role', module: 'role', permission: 'tambah peranan' },
  },
  {
    path: 'roles/:id/edit',
    name: 'edit-role',
    component: () => import('./pages/RoleEdit.vue'),
    meta: { title: 'Edit Role', module: 'role', permission: 'kemaskini peranan' },
  },
]
