import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';
import { PagesComponent } from './pages.component';

const routes: Routes = [
  {
    path: '',
    component: PagesComponent,
    children: [
      { path: '', redirectTo: 'home' },
      { path: 'home', loadChildren: './home/home-page.module#HomePageModule' },
      { path: 'probe', loadChildren: './probes/probe-tab-page.module#ProbeTabPageModule' },
      { path: 'discovery', loadChildren: './discovery/discovery-page.module#DiscoveryPageModule' },
      { path: 'map', loadChildren: './infra/infra-page.module#InfraPageModule' },
      { path: 'sensor', loadChildren: './sensors/sensor-tab-page.module#SensorTabPageModule' },
      { path: 'target/:id/info', loadChildren: './targets/target-page.module#TargetPageModule' },
      // { path: 'target', loadChildren: './target/target-page.module#TargetPageModule' },
      // { path: 'overview', loadChildren: './overview/overview-page.module#OverviewPageModule' },
      // { path: 'dashboard', loadChildren: './dashboard/dashboard-page.module#DashboardPageModule' },
      { path: 'notification', loadChildren: './notification/notification-page.module#NotificationPageModule' },
      // { path: 'alert', loadChildren: './alert/alert-page.module#AlertPageModule' },
      // { path: 'report', loadChildren: './report/report-page.module#ReportPageModule' },
      // { path: 'log', loadChildren: './log/log-page.module#LogPageModule' },
      { path: 'account', loadChildren: './account/account-page.module#AccountPageModule' },
      // { path: 'settings/member', loadChildren: './settings/member/member-page.module#MemberPageModule' },
    ]
  }
];

@NgModule({
  imports: [RouterModule.forChild(routes)],
  exports: [RouterModule]
})
export class PagesRoutingModule { }
