import {NgModule} from '@angular/core';
import {Routes, RouterModule} from '@angular/router';
import {SharedModule} from '../../../../shared/shared.module';
import { LayoutPlanTimeComponent } from './layout-plan-time/layout-plan-time.component';
import { LayoutPlanInterviewComponent } from './layout-plan-interview/layout-plan-interview.component';
import { LayoutPlanWrittenComponent } from './layout-plan-written/layout-plan-written.component';
import { LayoutPlanTimeDetailComponent } from './layout-plan-time-detail/layout-plan-time-detail.component';
import { LayoutPlanWrittenDetailComponent } from './layout-plan-written-detail/layout-plan-written-detail.component';
import { LayoutPlanInterviewDetailComponent } from './layout-plan-interview-detail/layout-plan-interview-detail.component';

const routes: Routes = [
  {path: 'interview', component: LayoutPlanInterviewComponent},
  {path: 'written', component: LayoutPlanWrittenComponent},
  {path: 'time', component: LayoutPlanTimeComponent}
];

@NgModule({
  imports: [
    SharedModule,
    RouterModule.forChild(routes)
  ],
  entryComponents: [LayoutPlanTimeDetailComponent, LayoutPlanWrittenDetailComponent, LayoutPlanInterviewDetailComponent],
  declarations: [ LayoutPlanTimeComponent,  LayoutPlanInterviewComponent, LayoutPlanWrittenComponent, LayoutPlanTimeDetailComponent, LayoutPlanWrittenDetailComponent, LayoutPlanInterviewDetailComponent],
  exports: [
    RouterModule
  ]
})
export class LayoutPlanModule {
}
