import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { RouterModule, Routes } from '@angular/router';
import { BookingManagementComponent } from './booking-management.component';
import { ExperienceBookingComponent } from './experience-booking/experience-booking.component';

const routes: Routes = [
  {
    path: 'HotelBooking',
    loadChildren: () =>
      import('./hotel-booking/hotel-booking.module').then(
        (m) => m.HotelBookingModule
      ),
  },
  {
    path: 'ExperienceBooking',
    loadChildren: () =>
      import('./experience-booking/experience-booking.module').then(
        (m) => m.ExperienceBookingModule
      ),
  },
  {
    path: '',
    pathMatch: 'full',
    redirectTo: 'search',
  },
];

@NgModule({
  declarations: [BookingManagementComponent, ExperienceBookingComponent],
  imports: [CommonModule, RouterModule.forChild(routes)],
})
export class BookingManagementModule {}
