import { NgModule } from '@angular/core';
import { Routes } from '@angular/router';
import { NativeScriptRouterModule } from '@nativescript/angular';
import { SearchPersonDetailComponent } from './containers/search-person-detail/search-person-detail.component';
import { SearchPersonListComponent } from './containers/search-person-list/search-person-list.component';
import { SearchPersonComponent } from './containers/search-person/search-person.component';

const routes: Routes = [
    { path: '', component: SearchPersonComponent },
    { path: 'list', component: SearchPersonListComponent },
    {path: 'list/:personId/:isCatalog', component: SearchPersonDetailComponent}
];

@NgModule({
    imports: [NativeScriptRouterModule.forChild(routes)],
    exports: [NativeScriptRouterModule]
})

export class SearchPersonRoutingModule {
}
