import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { AllocationViewComponent } from './allocation-view/allocation-view.component';
import { AllocationAddComponent } from './allocation-add/allocation-add.component';
import { Routes, RouterModule } from '@angular/router';
import { AllocationComponent } from './allocation.component';
import { MatMenuModule } from '@angular/material/menu';
import { ToolbarModule } from 'primeng/toolbar';
import { TableModule } from 'primeng/table';
import { NgSelectModule } from '@ng-select/ng-select';
import { ButtonModule } from 'primeng/button';
import { InputTextModule } from 'primeng/inputtext';
import { CalendarModule } from 'primeng/calendar';
import { DialogModule } from 'primeng/dialog';
import { ReactiveFormsModule, FormsModule } from '@angular/forms';
import { ToastModule } from 'primeng/toast';
import { MatButtonModule } from '@angular/material/button';


const routes: Routes = [
  {
    path: 'AddAllocation/:Hotel_Eaxtranet_Id',
    component: AllocationAddComponent,
  },
  // {
  //   path: 'UpdateAllocation/:Hotel_Eaxtranet_Id/:RuleId',
  //   component: AllocationViewComponent,
  // },
]


@NgModule({
  declarations: [
    AllocationComponent,
    AllocationViewComponent,
    AllocationAddComponent
  ],
  imports: [
    TableModule,
    DialogModule,
    ButtonModule,
    CommonModule,
    ToolbarModule,
    MatMenuModule,
    ToastModule,
    NgSelectModule,
    CalendarModule,
    FormsModule,
    ReactiveFormsModule,
    InputTextModule,
    MatButtonModule,
    RouterModule.forChild(routes),
  ],
  exports:[
    AllocationComponent
  ]
})
export class AllocationModule { }
