From 15d0ef154ab2fa91d78c9b0ecc3fa91ddc3d59d5 Mon Sep 17 00:00:00 2001 From: diegoTech14 Date: Sat, 14 Dec 2024 23:08:14 -0600 Subject: [PATCH] Feat: Added the post component --- src/components/post-form.tsx | 47 ++++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 src/components/post-form.tsx diff --git a/src/components/post-form.tsx b/src/components/post-form.tsx new file mode 100644 index 0000000..5b78b09 --- /dev/null +++ b/src/components/post-form.tsx @@ -0,0 +1,47 @@ +type PostData = { + category: string; + question: string; + votes: number; + }; + + interface PostDataProp { + data: PostData; + } + + export const PostComponent: React.FC = ({ data }) => { + return ( +
+
+ User Avatar +
+
+

+ Default User Name +

+ member +
+
+
+
+ + {data.category} + +
+
+

{data.question}

+

{data.votes} Votes

+
+
+ +
+
+ ); + }; + \ No newline at end of file