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