"use client"; import { Button } from "../Button"; import { Modal } from "../Modal"; interface AlertDialogProps { open: boolean; setOpen: (open: boolean) => void; headerText: string; mainText: string; confirmBtnLabel: string; declineBtnLabel?: string; declineBtnVariant?: "warn" | "minimal"; onDecline: () => void; onConfirm?: () => void; } export default function AlertDialog({ open, setOpen, headerText, mainText = "Are you sure? This action cannot be undone.", declineBtnLabel, onDecline, confirmBtnLabel, declineBtnVariant = "minimal", onConfirm, }: AlertDialogProps) { return (

{mainText}

); }