import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';
import { GoodsInSearchComponent } from './pages/goods-in-search/goods-in-search.component';
import { GoodsInSearchResultsComponent } from './pages/goods-in-search-results/goods-in-search-results.component';
import { GoodsInOrderDetailsComponent } from './pages/goods-in-order-details/goods-in-order-details.component';

export const routes: Routes = [
  {
    path: 'search',
    component: GoodsInSearchComponent,
  },
  {
    path: 'results',
    component: GoodsInSearchResultsComponent,
  },
  {
    path: 'details/:id/:itemId/:status',
    component: GoodsInOrderDetailsComponent,
  },
];

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