export default [
  {
    path: "/users/create",
    name: "UserAddPage",
    component: () => import("pages/users/UserActionPage.vue"),
    meta: {
      title: {
        value: "Cadastro de Usuário",
        translate: false,
      },
      requireAuth: true,
      requiredPermission: "config.city",
      breadcrumbs: [
        {
          name: "UserPage",
          title: "Usuários",
        },
        {
          name: "UserAddPage",
          title: "Cadastro de Usuário",
        },
      ],
    },
  },
  {
    path: "/users/:id",
    name: "UserEditPage",
    component: () => import("pages/users/UserActionPage.vue"),
    meta: {
      title: {
        value: "Editar Usuário",
        translate: false,
      },
      requireAuth: true,
      requiredPermission: "config.city",
      breadcrumbs: [
        {
          name: "UserPage",
          title: "Usuários",
        },
        {
          name: "UserEditPage",
          title: "Editar Usuário",
        },
      ],
    },
  },
  {
    path: "/users",
    name: "UserPage",
    component: () => import("pages/users/UserPage.vue"),
    meta: {
      title: {
        value: "Usuários",
        translate: false,
      },
      requireAuth: true,
      // TODO: Verificar permissao, fazendo seeder e substituindo
      requiredPermission: "config.city",
      breadcrumbs: [
        {
          name: "UserPage",
          title: "Usuários",
        },
      ],
    },
  },
];
