import {NgModule} from '@angular/core'
import {CommonModule} from '@angular/common'
import {RouterModule, Routes} from '@angular/router'

import {AuthGuard} from "@app/_helpers";
import {ObjectsModule} from "@app/_modules/objects/objects.module";
import {NotificationsListComponent} from "@app/_modules/notifications/list/notifications-list.component";
import {FormFieldRelationModule, FormFieldStringModule, FormFieldTextModule} from "@app/_modules/form-fields/types";
import {NotificationsListItemComponent} from "@app/_modules/notifications/list/item/notifications-list-item.component";
import {VigetModule} from '../viget/viget.module';
const routes: Routes = [
  {path: 'notifications', component: NotificationsListComponent, outlet: 'slider', canActivate: [AuthGuard]}
]

@NgModule({
  imports: [
    CommonModule,
    RouterModule.forChild(routes),
    ObjectsModule,
    FormFieldStringModule,
    FormFieldTextModule,
    FormFieldRelationModule,
    VigetModule
  ],
  declarations: [
    NotificationsListComponent,
    NotificationsListItemComponent
  ],
  exports: [
  ]
})
export class NotificationsModule {}
