import { Component, OnInit, Inject, ViewChild, OnDestroy } from '@angular/core';
import { MatDialogRef, MAT_DIALOG_DATA } from '@angular/material';
import { NoticeList } from '@ucap-webmessenger/api-message';

export interface NoticeDetailDialogData {
  notice: NoticeList;
}

export interface NoticeDetailDialogResult {}

@Component({
  selector: 'app-notice-detail.dialog',
  templateUrl: './notice-detail.dialog.component.html',
  styleUrls: ['./notice-detail.dialog.component.scss']
})
export class NoticeDetailDialogComponent implements OnInit {
  constructor(
    public dialogRef: MatDialogRef<
      NoticeDetailDialogData,
      NoticeDetailDialogResult
    >,
    @Inject(MAT_DIALOG_DATA) public data: NoticeDetailDialogData
  ) {}

  ngOnInit() {}

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