import { CommonModule } from '@angular/common';
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
import { MyDateRangePickerModule } from 'mydaterangepicker';
import { NgModule } from '@angular/core';
import { RouterModule, Routes } from '@angular/router';
import { SharedModule } from './shared.module';
import { TaAddProfileComponent } from '../ta/ta-add-profile/ta-add-profile.component';
import { TaAuthenticationService } from '../services/role-authentication/ta.authentication.service';
import { TaBulkUploadComponent } from '../ta/ta-bulk-upload/ta-bulk-upload.component';
import { TAComponent } from '../ta/ta.component';
import { TaDashboardComponent } from '../ta/ta-dashboard/ta-dashboard.component';
import { TaEditProfileComponent } from '../ta/ta-add-profile/ta-edit-profile.component';
import { TaProfilesComponent } from '../ta/ta-profiles/ta-profiles.component';
import { TaAddCandidateComponent } from '../ta/ta-add-candidate/ta-add-candidate.component';
import { TaReportsComponent } from '../ta/ta-reports/ta-reports.component';
const routes: Routes = [{
  path: 'ta',
  component: TAComponent,
  // canActivate: [TaAuthenticationService],
  children: [
    { path: '', component: TaDashboardComponent },
    { path: 'taAddProfile', component: TaAddProfileComponent },
    { path: 'addCandidate', component: TaAddCandidateComponent },
    { path: 'taProfile/:id', component: TaProfilesComponent },
    { path: 'taEditProfile', component: TaEditProfileComponent },
    { path: 'taBulkUpload', component: TaBulkUploadComponent },
    { path: 'reports', component: TaReportsComponent }
  ]
}];

@NgModule({
  imports: [
    CommonModule,
    FormsModule,
    SharedModule,
    ReactiveFormsModule,
    MyDateRangePickerModule,
    RouterModule.forChild(routes)
  ],
  declarations: [
    TAComponent,
    TaDashboardComponent,
    TaAddProfileComponent,
    TaProfilesComponent,
    TaEditProfileComponent,
    TaBulkUploadComponent,
  ]
})
export class TaRoutingModule { }

