

export default function VerificationModal({title, onConfirm, onCancel, isOpen}) {
    if (!isOpen) return null;

    return (
        <div className="fixed inset-0 flex items-center justify-center">
            <div className="glassmorphism p-6">
                <h2 className="text-lg text-white font-semibold mb-4">{title}</h2>
                <div className="flex justify-end">
                    <button 
                        className="bg-primary px-3 py-2 rounded-sm text-white font-montserrat text-lg font-semibold cursor-pointer"
                        onClick={() => onConfirm()}
                    >
                        Confirmer
                    </button>
                    <button 
                        className="bg-red-500 ml-4 px-3 py-2 rounded-sm text-white font-montserrat text-lg font-semibold cursor-pointer"
                        onClick={() => onCancel()}
                    >
                        Annuler
                    </button>
                </div>
            </div>
        </div>
    );
}
