Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

Revert "refactor: remove unused topic component"

thecodrr6f2c6f88ec7e
diff --git a/apps/web/src/components/topic/index.js b/apps/web/src/components/topic/index.js
new file mode 100644
index 000000000..7aab0184f
--- /dev/null
+++ b/apps/web/src/components/topic/index.js
@@ -0,0 +1,28 @@
+import React from "react";
+import ListItem from "../list-item";
+
+const dropdownRefs = [];
+const menuItems = [
+ {
+ title: "Delete",
+ color: "red"
+ }
+];
+
+function Topic({ item, index, onClick }) {
+ const topic = item;
+ return (
+ <ListItem
+ selectable
+ item={topic}
+ onClick={onClick}
+ title={topic.title}
+ info={`${topic.totalNotes} Notes`}
+ index={index}
+ dropdownRefs={dropdownRefs}
+ menuData={topic}
+ menuItems={menuItems}
+ />
+ );
+}
+export default Topic;