// /components/gisPolylines/PolylineContextMenu.js
import React from "react";

const PolylineContextMenu = ({ position, onAddPoint, onRemovePoint, onClose }) => {
  return (
    <div
      style={{
        position: "absolute",
        top: position.y,
        left: position.x,
        backgroundColor: "white",
        border: "1px solid black",
        padding: "10px",
        zIndex: 1000,
      }}
    >
      <ul>
        <li onClick={onAddPoint}>Stützpunkt hinzufügen</li>
        <li onClick={onRemovePoint}>Stützpunkt entfernen</li>
        <li onClick={onClose}>Schließen</li>
      </ul>
    </div>
  );
};

export default PolylineContextMenu;
