import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { SupplementsAddComponent } from './supplements-add/supplements-add.component';
import { SupplementsViewComponent } from './supplements-view/supplements-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 { TabViewModule } from 'primeng/tabview';
import { Tab1Component } from './supplements-add/tab1/tab1.component';
import { Tab2Component } from './supplements-add/tab2/tab2.component';
import { HotelSupplementsComponent } from './hotel-supplements.component';
import { ReactiveFormsModule,FormsModule } from '@angular/forms';
import { MatButtonModule } from '@angular/material/button';
import { TooltipModule } from 'primeng/tooltip';

const routes: Routes = [
  {
    path: 'AddSuppliment/:Hotel_Eaxtranet_Id',
    component: SupplementsAddComponent,
  },
  {
    path: 'EditSuppliment/:Hotel_Eaxtranet_Id/:RuleId',
    component: SupplementsAddComponent,
  },
  {
    path: 'View',
    component: SupplementsViewComponent,
  },
]

@NgModule({
  declarations: [
    HotelSupplementsComponent,
    SupplementsAddComponent,
    SupplementsViewComponent,
    Tab1Component,
    Tab2Component
  ],
  imports: [
    CommonModule,
    RouterModule,
    NgSelectModule,
    MatCheckboxModule,
    ButtonModule,
    TableModule,
    ToolbarModule,
    MatMenuModule,
    CalendarModule,
    ReactiveFormsModule,
    FormsModule,
    TooltipModule,
    InputTextModule,
    TabViewModule,
    MatButtonModule,
    RouterModule.forChild(routes),
  ],
  exports:[
    HotelSupplementsComponent
  ]
})
export class HotelSupplementsModule { }
