import { CommonModule } from '@angular/common';
import { CUSTOM_ELEMENTS_SCHEMA, NgModule } from '@angular/core';
import { RouterModule } from '@angular/router';
import { HideTextModule } from '@msfa-shared/components/hide-text/hide-text.module';
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 { PeriodiskRedovisningViewComponent } from './periodisk-redovisning-view.component';
import { PeriodiskRedovisningViewService } from './periodisk-redovisning-view.service';

@NgModule({
  schemas: [CUSTOM_ELEMENTS_SCHEMA],
  declarations: [PeriodiskRedovisningViewComponent],
  imports: [
    CommonModule,
    RouterModule.forChild([{ path: '', component: PeriodiskRedovisningViewComponent }]),
    LayoutModule,
    ReportLayoutModule,
    UiBackLinkModule,
    UiLoaderModule,
    HideTextModule,
    UiSkeletonModule,
  ],
  providers: [PeriodiskRedovisningViewService],
  exports: [PeriodiskRedovisningViewComponent],
})
export class PeriodiskRedovisningViewModule {}
