import { Component, Input } from "@angular/core";
import { CommonModule } from "@angular/common";
import { NgbActiveModal } from "@ng-bootstrap/ng-bootstrap";

@Component({
  selector: "app-confirmation-modal",
  standalone: true,
  imports: [CommonModule],
  templateUrl: "./confirmation-modal.component.html",
  styleUrls: ["./confirmation-modal.component.scss"],
})
export class ConfirmationModalComponent {
  // modal type 1: logout, 2: delete, 3: confirmation
  @Input() modalType: number = 1;
  @Input() message: string = "Yakin ingin logout?";

  constructor(public activeModal: NgbActiveModal) {}
}
