Implement deletion + context menu
This commit is contained in:
parent
7b23283201
commit
49a558589c
6 changed files with 169 additions and 1 deletions
16
src/Components/Menu/MenuItem.tsx
Normal file
16
src/Components/Menu/MenuItem.tsx
Normal 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>
|
||||
);
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue