import { MAT_DIALOG_DATA } from '@angular/material/dialog';
import { Component, OnInit, Inject } from '@angular/core';

@Component({
  selector: 'app-delete-alert',
  templateUrl: './delete-alert.component.html',
  styleUrls: ['./delete-alert.component.css']
})
export class DeleteAlertComponent implements OnInit {
  userToDelete: string;

  constructor(@Inject(MAT_DIALOG_DATA) public data: any) { 
    this.userToDelete = "";
  }

  ngOnInit(): void {
    this.userToDelete = this.data.id;
  }

}
