import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { HotelBlockDateComponent } from './hotel-block-date.component';
import { HotelAddBlockDateComponent } from './hotel-add-block-date/hotel-add-block-date.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 { RouterModule, Routes } from '@angular/router';
import { NgSelectModule } from '@ng-select/ng-select';
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 { CalendarModule } from 'primeng/calendar';

const routes: Routes = [

  {
    path: 'HotelAddBlockDate/:Hotel_Eaxtranet_Id',
    component:HotelAddBlockDateComponent,
  },
  {
    path: 'HotelEditBlockDate/:Hotel_Eaxtranet_Id/:RuleId',
    component:HotelAddBlockDateComponent,
  }
]

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