From 6a04f60ce76fbd8274dd9daf285042f9cab16656 Mon Sep 17 00:00:00 2001
From: yipstanley <stanley_yip@brown.edu>
Date: Mon, 21 Jan 2019 21:42:03 -0500
Subject: context menu basics working

---
 src/views/ContextMenuItem.tsx | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)
 create mode 100644 src/views/ContextMenuItem.tsx

(limited to 'src/views/ContextMenuItem.tsx')

diff --git a/src/views/ContextMenuItem.tsx b/src/views/ContextMenuItem.tsx
new file mode 100644
index 000000000..beacb44d2
--- /dev/null
+++ b/src/views/ContextMenuItem.tsx
@@ -0,0 +1,17 @@
+import React = require("react");
+import { ContextMenu } from "./ContextMenu";
+
+export interface ContextMenuProps {
+    description: string;
+    event: (e: React.MouseEvent<HTMLDivElement>) => void;
+}
+
+export class ContextMenuItem extends React.Component<ContextMenuProps> {
+    render() {
+        return(
+            <div className="contextMenu-item" onClick={this.props.event}>
+                <div className="contextMenu-description">{this.props.description}</div>
+            </div>
+        )
+    }
+}
\ No newline at end of file
-- 
cgit v1.2.3-70-g09d2

