import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { RouterModule, Routes } from '@angular/router';
import { MinimumStayAddComponent } from './minimum-stay-add/minimum-stay-add.component';
import { MinimumStayViewComponent } from './minimum-stay-view/minimum-stay-view.component';
import { NgSelectModule } from '@ng-select/ng-select';
import { TableModule } from 'primeng/table';
import { ToolbarModule } from 'primeng/toolbar';
import { MatButtonModule } from '@angular/material/button';
import { MatMenuModule } from '@angular/material/menu';
import { InputTextModule } from 'primeng/inputtext';
import { CalendarModule } from 'primeng/calendar';
import { MinimumStayComponent } from './minimum-stay.component';
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
import { DialogModule } from 'primeng/dialog';
import { UpdateMinimumStayComponent } from './update-minimum-stay/update-minimum-stay.component';
import { TooltipModule } from 'primeng/tooltip';

const routes: Routes = [
  {
    path: 'AddMinStay/:Hotel_Eaxtranet_Id',
    component: MinimumStayAddComponent,
  },
  {
    path: 'EditMinStay/:Hotel_Eaxtranet_Id/:RuleId',
    component:UpdateMinimumStayComponent,
  },
]

@NgModule({
  declarations: [
    MinimumStayComponent,
    MinimumStayViewComponent,
    MinimumStayAddComponent,
    UpdateMinimumStayComponent
  ],
  imports: [
    CommonModule,
    NgSelectModule,
    TableModule,
    MatButtonModule,
    ToolbarModule,
    MatMenuModule,
    FormsModule,
    TooltipModule,
    ReactiveFormsModule,
    DialogModule,
    InputTextModule,
    CalendarModule,
    RouterModule.forChild(routes),
  ],
  exports:[
    MinimumStayComponent
  ]
})
export class MinimumStayModule { }
