import React from 'react'; import { XMarkIcon, ExclamationTriangleIcon } from '@heroicons/react/24/outline'; interface Props { open: boolean; title: string; message: string; confirmLabel?: string; cancelLabel?: string; danger?: boolean; loading?: boolean; onConfirm: () => void; onCancel: () => void; } export default function ConfirmDialog({ open, title, message, confirmLabel = 'تأیید', cancelLabel = 'لغو', danger = false, loading = false, onConfirm, onCancel, }: Props) { if (!open) return null; return (
{message}