import { LuMenu } from 'react-icons/lu'; export type MenuElement = { name: string; onClick: () => void; }; export type ContextMenuProps = { elements?: MenuElement[]; }; export const ContextMenu = ({ elements }: ContextMenuProps) => { // if (!elements) { return <>; // } // return ( // // // {/* This is very stupid, we need to set as span to prevent a button in button... WTF */} // // // // {elements?.map((data) => ( // // {data.name} // // ))} // // //); };