import { CommonModule } from '@angular/common';
import { CUSTOM_ELEMENTS_SCHEMA, NgModule } from '@angular/core';
import { RouterModule } from '@angular/router';
import { BackLinkModule } from '@msfa-shared/components/back-link/back-link.module';
import { LayoutModule } from '@msfa-shared/components/layout/layout.module';
import { UiLoaderModule } from '@ui/loader/loader.module';
import { UiSkeletonModule } from '@ui/skeleton/skeleton.module';
import { ReportLayoutModule } from '../../../components/report-layout/report-layout.module';
import { AvvikelseReportViewComponent } from './avvikelse-report-view.component';
import { AvvikelseReportViewService } from './avvikelse-report-view.service';

@NgModule({
  schemas: [CUSTOM_ELEMENTS_SCHEMA],
  declarations: [AvvikelseReportViewComponent],
  imports: [
    CommonModule,
    RouterModule.forChild([{ path: '', component: AvvikelseReportViewComponent }]),
    LayoutModule,
    ReportLayoutModule,
    BackLinkModule,
    UiLoaderModule,
    UiSkeletonModule,
  ],
  providers: [AvvikelseReportViewService],
  exports: [AvvikelseReportViewComponent],
})
export class AvvikelseReportViewModule {}
