import { Component, inject } from '@angular/core';
import { CommonModule, DatePipe } from '@angular/common';
import { MAT_DIALOG_DATA, MatDialogRef } from '@angular/material/dialog';
import { IProject } from '../../models/project.model';

@Component({
    selector: 'app-project-detail-popup',
    templateUrl: './project-detail-popup.html',
    styleUrls: ['./project-detail-popup.scss'],
    standalone: true,
    imports: [CommonModule, DatePipe]
})
export class ProjectDetailPopupComponent {
    private dialogRef = inject(MatDialogRef<ProjectDetailPopupComponent>);
    project: IProject = inject(MAT_DIALOG_DATA);

    close(): void {
        this.dialogRef.close();
    }
}
