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 { UiLoaderModule } from '@ui/loader/loader.module';
import { UiSkeletonModule } from '@ui/skeleton/skeleton.module';
import { ReportLayoutModule } from '../../../components/report-layout/report-layout.module';
import { SignalViewComponent } from './signal-view.component';
import { SignalViewService } from './signal-view.service';
import { UiBackLinkModule } from '@ui/back-link/back-link.module';

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