import { CommonModule } from '@angular/common';
import { CUSTOM_ELEMENTS_SCHEMA, NgModule } from '@angular/core';
import { RouterModule } from '@angular/router';
import { LayoutModule } from '@msfa-shared/components/layout/layout.module';
import { UiBackLinkModule } from '@ui/back-link/back-link.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 { SlutredovisningViewDescriptionListModule } from '../../../components/slutredovisning-view-description-list/slutredovisning-view-description-list.module';
import { SlutredovisningViewComponent } from './slutredovisning-view.component';
import { SlutredovisningViewService } from './slutredovisning-view.service';

@NgModule({
  schemas: [CUSTOM_ELEMENTS_SCHEMA],
  declarations: [SlutredovisningViewComponent],
  imports: [
    CommonModule,
    RouterModule.forChild([{ path: '', component: SlutredovisningViewComponent }]),
    LayoutModule,
    ReportLayoutModule,
    UiBackLinkModule,
    UiLoaderModule,
    UiSkeletonModule,
    SlutredovisningViewDescriptionListModule,
  ],
  providers: [SlutredovisningViewService],
  exports: [SlutredovisningViewComponent],
})
export class SlutredovisningViewModule {}
