import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { SharedModule } from '../../../shared/shared.module';
import { RouterModule, Routes } from '@angular/router';
import { SignatureRouter } from './router/router';
import { SignatureContainer } from './container/signature/signature.container';
import { ListComponent } from './presenter/list/list.component';
import { SearchComponent } from './presenter/search/search.component';
import { FormDialogComponent } from './presenter/dialog/form-dialog/form-dialog.component';


const routes: Routes = [
    {
        path: '',
        component: SignatureRouter,
        children: [
            {
                path: '',
                component: SignatureContainer
            },
        ]
    }
];

@NgModule({
    declarations: [
        SignatureRouter,
        SignatureContainer,
        ListComponent,
        SearchComponent,
        FormDialogComponent
    ],
    imports: [
        CommonModule,
        SharedModule,
        RouterModule.forChild(routes)
    ]
})
export class SignatureModule { }
