import React from 'react';
import { DeleteOutlined, CopySquareOutlined } from '@easyv/react-icons';

export interface TreeToolProp {
  onCopy?: () => void;
  onDelete?: () => void;
}

const TreeTool: React.FC<TreeToolProp> = function ({ onCopy, onDelete }) {
  return (
    <div className="h-10 border-t border-borderColorBase flex items-center justify-center gap-x-4">
      <CopySquareOutlined className="anticon" onClick={onCopy} />
      <DeleteOutlined className="anticon" onClick={onDelete} />
    </div>
  );
};

export default TreeTool;
