import { Component, NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { RouterModule, Routes } from '@angular/router';
import { HotelZoneSearchComponent } from './hotel-zone-search/hotel-zone-search.component';
import { HotelZoneAddComponent } from './hotel-zone-add/hotel-zone-add.component';
import { HotelZoneEditComponent } from './hotel-zone-edit/hotel-zone-edit.component';
import { ReactiveFormsModule, FormsModule } from '@angular/forms';
import { MatButtonModule } from '@angular/material/button';
import { MatCheckboxModule } from '@angular/material/checkbox';
import { MatMenuModule } from '@angular/material/menu';
import { NgSelectModule } from '@ng-select/ng-select';
import { CalendarModule } from 'angular-calendar';
import { ButtonModule } from 'primeng/button';
import { DialogModule } from 'primeng/dialog';
import { FileUploadModule } from 'primeng/fileupload';
import { InputTextModule } from 'primeng/inputtext';
import { TableModule } from 'primeng/table';
import { ToastModule } from 'primeng/toast';
import { ToolbarModule } from 'primeng/toolbar';
import { PaginatorModule } from 'primeng/paginator';

const routes: Routes = [
  {
    path: 'Search',
    component: HotelZoneSearchComponent,
  },
  {
    path: 'Add',
    component: HotelZoneAddComponent,
  },
  {
    path: 'Edit/:RuleId',
    component: HotelZoneAddComponent,
  },
]


@NgModule({
  declarations: [
    HotelZoneSearchComponent,
    HotelZoneAddComponent,
    HotelZoneAddComponent
  ],
  imports: [
    CommonModule,
    ToastModule,
    TableModule,
    DialogModule,
    FormsModule,
    CommonModule,
    FileUploadModule,
    ToolbarModule,
    MatMenuModule,
    PaginatorModule,
    CalendarModule,
    ToastModule,
    NgSelectModule,
    InputTextModule,
    ReactiveFormsModule,
    FormsModule,
    MatButtonModule,
    MatCheckboxModule,
    ButtonModule,
    RouterModule.forChild(routes)
  ]
})
export class HotelZoneModule { }
