22 lines
604 B
TypeScript
22 lines
604 B
TypeScript
import {Component, Inject} from '@angular/core';
|
|
import {MAT_DIALOG_DATA, MatDialogRef} from "@angular/material/dialog";
|
|
import {ThemePalette} from "@angular/material/core";
|
|
|
|
export interface DialogData {
|
|
title?: string;
|
|
subtitle?: string;
|
|
buttons?: {text: string, value: any, color: ThemePalette}[];
|
|
}
|
|
|
|
@Component({
|
|
selector: 'app-dialog',
|
|
templateUrl: './dialog.component.html',
|
|
styleUrls: ['./dialog.component.scss']
|
|
})
|
|
export class DialogComponent {
|
|
public constructor(
|
|
public dialogRef: MatDialogRef<DialogComponent>,
|
|
@Inject(MAT_DIALOG_DATA) public data: DialogData,
|
|
) {}
|
|
}
|