import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { UserCouterRouter } from './user-couter-router/user-couter-router';
import { UserCouterContainer } from './container/user-couter/user-couter.container';
import {SharedModule} from '../../../shared/shared.module';
import {RouterModule, Routes} from '@angular/router';
import {MatTabsModule} from '@angular/material/tabs';
import { UserCouterFormComponent } from './presenter/form/user-couter-form/user-couter-form.component';
import { UserCouterListComponent } from './presenter/list/user-couter-list/user-couter-list.component';
import { UserCouterSearchComponent } from './presenter/search/user-couter-search/user-couter-search.component';

const routes: Routes = [
  {
    path: '',
    component: UserCouterRouter,
    children: [
      {
        path: '',
        component: UserCouterContainer
      },
      {
        path: 'add',
        component: UserCouterFormComponent
      },
      {
        path: 'edit/:id',
        component: UserCouterFormComponent
      }
      // {
      //   path: '',
      //   component: SetExamInformationContainer
      // },
      // {
      //   path: 'add',
      //   component: SetExamInformationFormComponent
      // },
      // {
      //   path: 'edit/:id',
      //   component: SetExamInformationFormComponent
      // },
    ]
  }
];

@NgModule({
  declarations: [UserCouterRouter, UserCouterContainer, UserCouterFormComponent, UserCouterListComponent, UserCouterSearchComponent],
  imports: [
    CommonModule,
    SharedModule,
    RouterModule.forChild(routes),
    MatTabsModule
  ]
})
export class UserCouterModule { }
