Implement deletion + context menu
All checks were successful
continuous-integration/drone/pr Build is passing
continuous-integration/drone/push Build is passing

This commit is contained in:
Siklos 2022-08-08 14:29:45 +02:00
parent 7b23283201
commit 49a558589c
6 changed files with 169 additions and 1 deletions

View file

@ -0,0 +1,16 @@
import * as React from 'react';
interface IMenuItemProps {
className?: string
text: string
onClick: () => void
}
export const MenuItem: React.FC<IMenuItemProps> = (props) => {
return (
<button
className={props.className}
onClick={() => props.onClick()}>{props.text}
</button>
);
};