import { Component, Inject, OnInit } from '@angular/core';
import { ActiveSymptomsListItem } from '../../../../../interfaces/failure-analysis/symptom.interface';
import { MAT_DIALOG_DATA } from '@angular/material/dialog';

@Component({
    selector: 'app-active-symptom-details',
    templateUrl: './active-symptom-details.component.html',
    styleUrl: './active-symptom-details.component.css',
    standalone: false
})
export class ActiveSymptomDetailsComponent implements OnInit {
  symptom: ActiveSymptomsListItem | null;

  constructor(
    @Inject(MAT_DIALOG_DATA) private _data: any,
  ){
    this.symptom = null;
  }

  ngOnInit(): void {
    this.symptom = this._data.symptom;
    console.log(this.symptom);
  }
}
