import { Button } from "@/components/ui/button" import { Dialog, DialogContent, DialogFooter, DialogHeader, DialogTitle } from "@/components/ui/dialog" type ConfirmDialogProps = { open: boolean title: string description?: string confirmText?: string cancelText?: string destructive?: boolean pending?: boolean onOpenChange: (open: boolean) => void onConfirm: () => void } export function ConfirmDialog({ open, title, description, confirmText = "确认", cancelText = "取消", destructive = false, pending = false, onOpenChange, onConfirm, }: ConfirmDialogProps) { return ( {title} {description &&
{description}
}
) }