import type { ClipboardEntry } from "../types"; interface Props { x: number; y: number; entry: ClipboardEntry; onCopy: () => void; onPin: () => void; onDelete: () => void; } export default function ContextMenu({ x, y, entry, onCopy, onPin, onDelete }: Props) { // Prevent the menu from going off-screen const adjustedX = Math.min(x, window.innerWidth - 160); const adjustedY = Math.min(y, window.innerHeight - 120); return (
e.stopPropagation()} >
); }