import { ChangeDetectionStrategy, Component, Input } from '@angular/core';
import { UiValidationMessageType } from './validation-message-type.enum';

@Component({
  selector: 'ui-validation-message',
  templateUrl: './validation-message.component.html',
  styleUrls: ['./validation-message.component.scss'],
  changeDetection: ChangeDetectionStrategy.OnPush,
})
export class ValidationMessageComponent {
  @Input() uiValidationMessage: string;
  @Input() uiValidationMessageType: UiValidationMessageType = UiValidationMessageType.ERROR;
  @Input() uiShowValidationMessage: boolean;
}
