import { TypographyDynamicHeadingLevel } from '@af/digi-ng/_typography/typography-dynamic-heading';
import { Component, ChangeDetectionStrategy, Input } from '@angular/core';

export interface ValidationErrorLink {
  elementId: string;
  text: string;
}

@Component({
  selector: 'msfa-error-list',
  templateUrl: './error-list.component.html',
  styleUrls: ['./error-list.component.scss'],
  changeDetection: ChangeDetectionStrategy.OnPush,
})
export class ErrorListComponent {
  @Input() validationErrorLinks: ValidationErrorLink[] = [];
  @Input() headingText: string;
  @Input() headingLevel: TypographyDynamicHeadingLevel = TypographyDynamicHeadingLevel.H3;
}
