From da39fa8b18055cdd8ca2094da6fab9946de33de4 Mon Sep 17 00:00:00 2001
From: sowgro <tpoke.ferrari@gmail.com>
Date: Tue, 5 Nov 2024 20:48:13 -0500
Subject: New Folder design

---
 extension/src/FolderBody.tsx | 20 ++++++++++++++++++++
 1 file changed, 20 insertions(+)
 create mode 100644 extension/src/FolderBody.tsx

(limited to 'extension/src/FolderBody.tsx')

diff --git a/extension/src/FolderBody.tsx b/extension/src/FolderBody.tsx
new file mode 100644
index 0000000..b013d97
--- /dev/null
+++ b/extension/src/FolderBody.tsx
@@ -0,0 +1,20 @@
+import BookmarkTreeNode = browser.bookmarks.BookmarkTreeNode;
+import Bookmark from "./Bookmark.tsx";
+import FolderButton from "./FolderButton.tsx";
+
+function FolderBody (props: {data: BookmarkTreeNode}) {
+    return (
+            <div className={"folderBody"}>
+                {
+                    props.data.children &&
+                    props.data.children.map(child =>
+                        child.children
+                            ? <FolderButton data={child} />
+                            : <Bookmark data={child} />
+                    )
+                }
+            </div>
+    )
+}
+
+export default FolderBody;
\ No newline at end of file
-- 
cgit v1.2.3

