import { NgModule } from '@angular/core';
import { Routes } from '@angular/router';
import { NativeScriptRouterModule } from '@nativescript/angular';
import { StsDetailBillComponent } from '~/pages/sts/containers/sts-detail-bill/sts-detail-bill.component';
import { StsDetailStatsComponent } from '~/pages/sts/containers/sts-detail-stats/sts-detail-stats.component';
import { StsDetailComponent } from '~/pages/sts/containers/sts-detail/sts-detail.component';
import { StsStatsComponent } from '~/pages/sts/containers/sts-stats/sts-stats.component';
import { StsComponent } from '~/pages/sts/containers/sts/sts.component';

const routes: Routes = [
    { path: '', component: StsComponent },
    { path: 'stats', component: StsStatsComponent },
    { path: 'detail/:number', component: StsDetailComponent },
    { path: 'detail/bill/:number', component: StsDetailBillComponent },
    { path: 'detail/stats/:number', component: StsDetailStatsComponent }
];

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