import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { RouterModule, Routes } from '@angular/router';
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 { TableModule } from 'primeng/table';
import { ToolbarModule } from 'primeng/toolbar';
import { SeasonAddComponent } from './season-add/season-add.component';
import { SeasonSearchComponent } from './season-search/season-search.component';
import { CalendarModule } from 'primeng/calendar';


const routes: Routes = [
  {
    path: 'Search',
    component: SeasonSearchComponent,
  },
  {
    path: 'Add',
    component: SeasonAddComponent,
  },
]
@NgModule({
  declarations: [
    SeasonSearchComponent,
    SeasonAddComponent,
  ],
  imports: [
    CommonModule,
    TableModule,
    ToolbarModule,
    MatMenuModule,
    PaginatorModule,
    CalendarModule,
    NgSelectModule,
    InputTextModule,
    ButtonModule,
    RouterModule.forChild(routes)
  ]
})
export class SeasonModule { }
