import { Routes } from "@angular/router";

import { DashboardComponent } from "../../components/dashboard/dashboard.component";
import { ProfileComponent } from "../../components/profile/profile.component";

import { AuthGuard } from "@app/services/auth.guard";
import { TermsComponent } from "@app/components/terms/terms.component";
import { InvestmentsComponent } from "@app/components/investments/investments.component";
import { InvestmentProposalsComponent } from "@app/components/investment-proposals/investment-proposals.component";
import { ArbitrationsComponent } from "@app/components/arbitrations/arbitrations.component";
import { PerformancesComponent } from "@app/components/performances/performances.component";

import { UsersComponent } from "@app/components/users/users.component";
import { NewUserComponent } from "@app/components/users/new-user/new-user.component";

export const AdminLayoutRoutes: Routes = [
  {
    path: "dashboard",
    component: DashboardComponent,
    data: { title: "Dashboard" }
  },
  {
    path: "profile",
    component: ProfileComponent,
    data: { title: "Perfil de usuario" }
  },
  {
    path: "investment-proposals",
    component: InvestmentProposalsComponent,
    //canActivate: [AuthGuard],
    data: {
      title: "Propuestas de inversión",
      breadcrumb: "Propuestas de inversión",
      roles: [2, 3]
    }
  },
  {
    path: "investments",
    component: InvestmentsComponent,
    //canActivate: [AuthGuard],
    data: {
      title: "Inversiones",
      breadcrumb: "Inversiones",
      roles: [2, 3]
    }
  },
  {
    path: "arbitrations",
    component: ArbitrationsComponent,
    //canActivate: [AuthGuard],
    data: {
      title: "Arbitrajes",
      breadcrumb: "Arbitrajes",
      roles: [2, 3]
    }
  },
  {
    path: "performances",
    component: PerformancesComponent,
    //canActivate: [AuthGuard],
    data: {
      title: "Rendimientos",
      breadcrumb: "Rendimientos",
      roles: [2, 3]
    }
  },
  {
    path: "users",
    component: UsersComponent,
    //canActivate: [AuthGuard],
    data: {
      title: "Listado de usuarios",
      breadcrumb: "Usuarios",
      roles: [3]
    }
  },

  {
    path: "users/new",
    component: NewUserComponent,
    //canActivate: [AuthGuard],
    data: {
      title: "Nuevo usuario",
      breadcrumb: "Nuevo usuario",
      roles: [3]
    }
  }
];
