import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { RouterModule, Routes } from '@angular/router';
import { SlotsAddComponent } from './slots-add/slots-add.component';
import { SlotsSearchComponent } from './slots-search/slots-search.component';
import { TableModule } from 'primeng/table';
import { MatMenuModule } from '@angular/material/menu';
import { NgSelectModule } from '@ng-select/ng-select';

import { ButtonModule } from 'primeng/button';
import { InputTextModule } from 'primeng/inputtext';
import { PaginatorModule } from 'primeng/paginator';
import { ToolbarModule } from 'primeng/toolbar';
import { CalendarModule } from 'primeng/calendar';


const routes: Routes = [
  {
    path:'Add',
    component:SlotsAddComponent,
  },
  {
    path:'Search',
    component:SlotsSearchComponent,
  },
]

@NgModule({
  declarations: [
    SlotsAddComponent,
    SlotsSearchComponent
  ],
  imports: [
    CommonModule,
    TableModule,
    ToolbarModule,
    MatMenuModule,
    PaginatorModule,
    CalendarModule,
    NgSelectModule,
    InputTextModule,
    ButtonModule,
    RouterModule.forChild(routes),
  ]
})
export class SlotsModule { }
