import { NgModule } from '@angular/core';
import { RouterModule, Routes } from '@angular/router';
import { GoodsInCleanupListComponent } from './goods-in-cleanup-list/goods-in-cleanup-list.component';
import { GoodsInCleanupListModule } from './goods-in-cleanup-list/goods-in-cleanup-list.module';
import { GoodsInListComponent } from './goods-in-list/goods-in-list.component';
import { GoodsInListModule } from './goods-in-list/goods-in-list.module';
import { GoodsInRemissionPreviewComponent } from './goods-in-remission-preview/goods-in-remission-preview.component';
import { GoodsInRemissionPreviewModule } from './goods-in-remission-preview/goods-in-remission-preview.module';
import { GoodsInReservationComponent } from './goods-in-reservation/goods-in-reservation.component';
import { GoodsInReservationModule } from './goods-in-reservation/goods-in-reservation.module';
import { GoodsInComponent } from './goods-in.component';

const routes: Routes = [
  {
    path: '',
    component: GoodsInComponent,
    children: [
      {
        path: 'list',
        component: GoodsInListComponent,
        title: 'Abholfach - Fehlende',
      },
      {
        path: 'reservation',
        component: GoodsInReservationComponent,
        title: 'Abholfach - Reservierung',
      },
      {
        path: 'cleanup',
        component: GoodsInCleanupListComponent,
        title: 'Abholfach - Ausräumen',
      },
      {
        path: 'preview',
        component: GoodsInRemissionPreviewComponent,
        title: 'Abholfach - Vorschau',
      },
    ],
  },
];
@NgModule({
  imports: [
    RouterModule.forChild(routes),
    GoodsInListModule,
    GoodsInCleanupListModule,
    GoodsInReservationModule,
    GoodsInRemissionPreviewModule,
  ],
  exports: [RouterModule],
})
export class GoodsInRoutingModule {}
