import { Component, Inject } from '@angular/core';
import { DatePipe } from '@angular/common';
import { MatButtonModule } from '@angular/material/button';
import { MatDialogRef, MAT_DIALOG_DATA, MatDialogModule } from '@angular/material/dialog';
import { MatIconModule } from '@angular/material/icon';

import { Jump } from 'src/app/core/models';

@Component({
    selector: 'huapp-jump-delete-dialog',
    templateUrl: 'jump-delete.dialog.html',
    standalone: true,
    imports: [
        DatePipe,
        MatDialogModule, MatButtonModule, MatIconModule
    ]
})
export class JumpDeleteDialogComponent {
    constructor(
        public dialogRef: MatDialogRef<JumpDeleteDialogComponent>,
        @Inject(MAT_DIALOG_DATA) public jump: Jump
    ) { }

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