import React from 'react'; interface DeleteModalProps { isOpen: boolean; type?: 'single' | 'all'; title?: string; message?: string; onClose: () => void; onConfirm: () => void; } const DeleteModal: React.FC = ({ isOpen, type = 'single', title, message, onClose, onConfirm }) => { if (!isOpen) return null; // Default texts based on type if custom ones aren't provided const displayTitle = title || (type === 'all' ? 'پاکسازی کل تاریخچه' : 'حذف فایل'); const displayMessage = message || (type === 'all' ? 'آیا مطمئن هستید؟ تمام سوابق حذف می‌شوند و قابل بازگشت نیستند.' : 'آیا از حذف این فایل اطمینان دارید؟'); return (
{/* Backdrop */}
{/* Modal Card */}
{/* Animated Icon Container */}
{/* Text Content */}

{displayTitle}

{displayMessage}

{/* Action Buttons */}
); }; export default DeleteModal;