From 10042991a4285f51da655b1a5962aaa6880d3adc Mon Sep 17 00:00:00 2001
From: Lukas <lukas.budginas@gmail.com>
Date: Mon, 30 Dec 2024 15:58:12 +0200
Subject: [PATCH] Update post page content

---
 components/post/PostPageContent.tsx | 16 +++++++++++++++-
 1 file changed, 15 insertions(+), 1 deletion(-)

diff --git a/components/post/PostPageContent.tsx b/components/post/PostPageContent.tsx
index 863e2645..97b1d22a 100644
--- a/components/post/PostPageContent.tsx
+++ b/components/post/PostPageContent.tsx
@@ -1,8 +1,10 @@
+import { useState } from "react";
 import { useRouter } from "next/router";
 import Link from "next/link";
 
 import usePostContent from "@/hooks/api/postPage/usePostContent";
 import PostContentCard from "./PostContentCard";
+import PostPropertiesTable from "./PostPropertiesTable";
 
 const HIVE_BLOG_URL = "https://hive.blog";
 const PEAKD_URL = "https://peakd.com";
@@ -17,6 +19,10 @@ const PostPageContent = () => {
 
   const { data } = usePostContent(accountName, permlink);
 
+  const [isPropertiesOpen, setIsPropertiesOpen] = useState(false);
+
+  const handlePropertiesToggle = () => setIsPropertiesOpen(!isPropertiesOpen);
+
   if (!data) return;
 
   const { title, author } = data;
@@ -55,7 +61,15 @@ const PostPageContent = () => {
         </div>
       </div>
 
-      <PostContentCard data={data} />
+      <PostContentCard
+        isPropertiesOpen={isPropertiesOpen}
+        handlePropertiesToggle={handlePropertiesToggle}
+        data={data}
+      />
+      <PostPropertiesTable
+        isPropertiesOpen={isPropertiesOpen}
+        data={data}
+      />
     </div>
   );
 };
-- 
GitLab