import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';
import { SensorPageComponent } from './sensor-page.component';
import { DetailComponent } from 'packages/sensor/component/detail/detail.component';

const routes: Routes = [
  {
    path: '',
    component: SensorPageComponent,
    children: [
      { path: ':id/info', component: DetailComponent },
      { path: ':id/history', component: null },
    ]
  }
];

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