import React, { useState, useCallback } from 'react';

const DeleteNodeModal = ({ onConfirm, onClose }) => {
  return (
    <div className="modal-overlay">
      <div className="modal-content">
        <h3>Bạn muốn xóa nhánh nào?</h3>
        <button onClick={() => onConfirm('yes')}>Yes</button>
        <button onClick={() => onConfirm('no')}>No</button>
        <button onClick={() => onConfirm('both')}>Both</button>
        <button onClick={() => onClose()}>Cancel</button>
      </div>
    </div>
  );
};

export default DeleteNodeModal;
