import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { RouterModule, Routes } from '@angular/router';
import { HotelManageComponent } from '../hotel-manage.component';
import { HotelRoomAddComponent } from './hotel-room-add/hotel-room-add.component';
import { HotelRoomComponent } from './hotel-room.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 { InputTextModule } from 'primeng/inputtext';
import { TableModule } from 'primeng/table';
import { ToastModule } from 'primeng/toast';
import { ToolbarModule } from 'primeng/toolbar';
import { FileUploadModule } from 'primeng/fileupload';



const routes: Routes = [

  {
    path: 'HotelAddRoom/:Hotel_Eaxtranet_Id',
    component:HotelRoomAddComponent,
  },
  {
    path: 'HotelEditRoom/:Hotel_Eaxtranet_Id/:RuleId',
    component:HotelRoomAddComponent,
  },
  {
    path: 'CloneRoom/:Hotel_Eaxtranet_Id/:RuleId',
    component:HotelRoomAddComponent,
  },
]


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