import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { OffersAddComponent } from './offers-add/offers-add.component';
import { OffersViewComponent } from './offers-view/offers-view.component';
import { RouterModule, Routes } from '@angular/router';
import { NgSelectModule } from '@ng-select/ng-select';
import { MatCheckboxModule } from '@angular/material/checkbox';
import { ButtonModule } from 'primeng/button';
import { TableModule } from 'primeng/table';
import { ToolbarModule } from 'primeng/toolbar';
import { MatMenuModule } from '@angular/material/menu';
import { CalendarModule } from 'primeng/calendar';
import { InputTextModule } from 'primeng/inputtext';
import { HotelOffersComponent } from './hotel-offers.component';
import { FormsModule,ReactiveFormsModule } from '@angular/forms';
import { MatButtonModule } from '@angular/material/button';

const routes: Routes = [
  {
    path: 'View',
    component: OffersViewComponent,
  },
  {
    path: 'AddOffer/:Hotel_Eaxtranet_Id',
    component: OffersAddComponent,
  },
  {
    path: 'EditOffer/:Hotel_Eaxtranet_Id/:RuleId',
    component: OffersAddComponent,
  },
]

@NgModule({
  declarations: [
    HotelOffersComponent,
    OffersAddComponent,
    OffersViewComponent
  ],
  imports: [
    CommonModule,
    NgSelectModule,
    MatCheckboxModule,
    ButtonModule,
    TableModule,
    FormsModule,
    ReactiveFormsModule,
    ToolbarModule,
    MatMenuModule,
    MatButtonModule,
    InputTextModule,
    CalendarModule,
    RouterModule.forChild(routes),
  ],
  exports:[
    HotelOffersComponent
  ]
})
export class HotelOffersModule { }
