import { Component, Inject } from '@angular/core';
import { FormControl, Validators } from '@angular/forms';
import { MatchErrors } from '../../../users-profiles/profiles-admin/new-profile/new-profile.component';
import { MAT_DIALOG_DATA } from '@angular/material/dialog';

@Component({
    selector: 'app-details-alert',
    templateUrl: './details-alert.component.html',
    styleUrl: './details-alert.component.css',
    standalone: false
})
export class DetailsAlertComponent {
  maintenanceMotives = new FormControl('', [Validators.required, Validators.minLength(8)]);
  errorMatcher = new MatchErrors();

  constructor(
    @Inject(MAT_DIALOG_DATA) public data: any,
  ) { }
}
