"use client"; import React from "react"; import { AlertDialog, AlertDialogContent, AlertDialogHeader, AlertDialogTitle, AlertDialogDescription, AlertDialogFooter, AlertDialogCancel, AlertDialogAction, } from "@/components/ui/alert-dialog"; interface ConfirmDialogProps { open: boolean; onOpenChange: (open: boolean) => void; title: string; description: React.ReactNode; confirmLabel?: string; cancelLabel?: string; onConfirm: () => void; isPending?: boolean; destructive?: boolean; } export function ConfirmDialog({ open, onOpenChange, title, description, confirmLabel = "Confirm", cancelLabel = "Cancel", onConfirm, isPending, destructive, }: ConfirmDialogProps) { return ( {title} {description} {cancelLabel} {confirmLabel} ); }