export function ContextMenu({ x, y, asset, onClose, onCopy, onDelete, onRename, onAddAtPlayhead, }: { x: number; y: number; asset: string; onClose: () => void; onCopy: (path: string) => void; onDelete?: (path: string) => void; onRename?: (oldPath: string, newPath: string) => void; onAddAtPlayhead?: (path: string) => void; }) { return (
{ e.preventDefault(); onClose(); }} >
{onAddAtPlayhead && ( )} {onRename && ( )} {onDelete && ( )}
); }