const settingsBreadcrumbs = [
  {
    name: "WelcomePage",
    title: "Inicio",
  },
  {
    name: "SettingsPage",
    title: "Acessos",
  },
];

export default [
  {
    path: "/settings",
    name: "SettingsPage",
    component: () => import("pages/settings/SettingsPage.vue"),
    meta: {
      title: "Acessos",
      requireAuth: true,
      requiredPermission: "config",
      breadcrumbs: settingsBreadcrumbs,
    },
  },
  {
    path: "/settings/users",
    name: "SettingsUsersPage",
    component: () => import("pages/settings/SettingsUsersPage.vue"),
    meta: {
      title: "Acessos",
      requireAuth: true,
      requiredPermission: "config.user",
      breadcrumbs: settingsBreadcrumbs,
    },
  },
  {
    path: "/settings/users/new",
    name: "SettingsUserCreatePage",
    component: () => import("pages/settings/SettingsUserActionPage.vue"),
    meta: {
      title: "Acessos",
      requireAuth: true,
      requiredPermission: "config.user",
      breadcrumbs: settingsBreadcrumbs,
    },
  },
  {
    path: "/settings/users/:id",
    name: "SettingsUserEditPage",
    component: () => import("pages/settings/SettingsUserActionPage.vue"),
    meta: {
      title: "Acessos",
      requireAuth: true,
      requiredPermission: "config.user",
      breadcrumbs: settingsBreadcrumbs,
    },
  },
  {
    path: "/settings/user-types",
    name: "SettingsUserTypesPage",
    component: () => import("pages/settings/SettingsUserTypesPage.vue"),
    meta: {
      title: "Acessos",
      requireAuth: true,
      requiredPermission: "config.permission",
      breadcrumbs: settingsBreadcrumbs,
    },
  },
  {
    path: "/settings/user-types/new",
    name: "SettingsUserTypeCreatePage",
    component: () => import("pages/settings/SettingsUserTypeActionPage.vue"),
    meta: {
      title: "Acessos",
      requireAuth: true,
      requiredPermission: "config.permission",
      breadcrumbs: settingsBreadcrumbs,
    },
  },
  {
    path: "/settings/user-types/:userTypeId",
    name: "SettingsUserTypeEditPage",
    component: () => import("pages/settings/SettingsUserTypeActionPage.vue"),
    meta: {
      title: "Acessos",
      requireAuth: true,
      requiredPermission: "config.permission",
      breadcrumbs: settingsBreadcrumbs,
    },
  },
];
