import { CircularsPageComponent } from './circulars-page/circulars-page.component';
import { NewsPageComponent } from './news-page/news-page.component';
import { InternalPageContentComponent } from './internal-page-content/internal-page-content.component';
import { NgModule } from '@angular/core';
// import { AuthGuardService as AuthGuard } from './../shared/auth-guard.service';
import { RouterModule, Routes } from '@angular/router';
import { InternalPageComponent } from './internal-page/internal-page.component';

import { HospitalContentComponent } from './hospital-content/hospital-content.component';
import { LoginComponent } from './../login/login.component';

const internalPageRoutes: Routes = [
        {path: '' , redirectTo: '/InternalPage/home', pathMatch: 'full'},
        {path: 'InternalPage' , component: InternalPageComponent, children:[
        {path: 'home', component: InternalPageContentComponent},
        {path: 'hospital', component: HospitalContentComponent},
        {path: 'news/:reportId', component: NewsPageComponent},
        {path:'circulars', component: CircularsPageComponent},
    ]},
];

@NgModule({
    imports: [
        RouterModule.forChild(internalPageRoutes),
    ],
    //exports: [internalPageRoutes]
    exports: [
        RouterModule
      ]
})

export class InternalPageRoutingModule {

}

