import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { SharedModule } from 'src/app/shared/shared.module';
import { RouterModule, Routes } from '@angular/router';
import { TeacherFinanceContainer } from './container/teacher-finance/teacher-finance.container';
import { TeacherFinanceRouter } from './router/teacher-finance-router';
import { TeacherFinanceSearchComponent } from './presenter/search/teacher-finance-search/teacher-finance-search.component';
import { TeacherFinanceListComponent } from './presenter/list/teacher-finance-list/teacher-finance-list.component';
import { TeacherFinanceFormComponent } from './presenter/form/teacher-finance-form/teacher-finance-form.component';

const routes : Routes =[
    {
        path:'',
        component: TeacherFinanceRouter,
        children:[
            {
                path:'',
                component: TeacherFinanceContainer
            },
            {
                path:'add',
                component: TeacherFinanceFormComponent
            },
            {
                path:'edit/:id',
                component: TeacherFinanceFormComponent
            },
        ]
    }
]

@NgModule({
    declarations: [
        TeacherFinanceRouter,
        TeacherFinanceContainer,
        TeacherFinanceSearchComponent,
        TeacherFinanceListComponent,
        TeacherFinanceFormComponent
    ],
    imports: [
        CommonModule,
        SharedModule,
        RouterModule.forChild(routes)
    ]
})
export class TeacherFinanceModule { }
