"use client"; import { type ReactNode } from "react"; import { PrimaryButton, SecondaryButton, } from "@/components/ui/primary-button"; interface ConfirmDialogProps { open: boolean; title: string; message: ReactNode; confirmLabel?: string; cancelLabel?: string; onConfirm: () => void; onCancel: () => void; loading?: boolean; } export function ConfirmDialog({ open, title, message, confirmLabel = "确认", cancelLabel = "取消", onConfirm, onCancel, loading = false, }: ConfirmDialogProps) { if (!open) return null; return (