import { CommonModule } from '@angular/common';
import { NgModule } from '@angular/core';
import { FormsModule } from '@angular/forms';
import { RouterModule } from '@angular/router';
import { TranslateModule } from '@ngx-translate/core';
import { ErrorPageComponent } from './error-page/error-page.component';
import { ButtonModule } from 'primeng/button';
@NgModule({
    declarations: [ErrorPageComponent],
    imports: [
        CommonModule,
        FormsModule,
        ButtonModule,
        TranslateModule,
        RouterModule.forChild([
            {
                path: '',
                redirectTo: '500',
                pathMatch: 'full'
            },
            {
                path: '500',
                data: {
                    errorCode: 500,
                    title: 'PAGE500.HEADER',
                    description: 'PAGE500.DESCRIPTION'
                },
                component: ErrorPageComponent,
            },
            {
                path: '404',
                data: {
                    errorCode: 404,
                    title: 'PAGE404.HEADER',
                    description: 'PAGE404.DESCRIPTION'
                },
                component: ErrorPageComponent,
            },
        ]),
    ],
})
export class ErrorPagesModule {}
