From bde5b7e766476ff906faa5d7d75ef31729286377 Mon Sep 17 00:00:00 2001 From: John Doe Date: Sat, 9 Sep 2023 17:24:48 +0300 Subject: [PATCH] =?UTF-8?q?=F0=9F=9B=A0=EF=B8=8F=20Refactor=20Comment=20co?= =?UTF-8?q?mponent=20=F0=9F=9A=A7=20Improved=20code=20structure=20?= =?UTF-8?q?=F0=9F=8E=A8=20Enhanced=20readability=20=F0=9F=94=A7=20Added=20?= =?UTF-8?q?comments=20for=20clarity=20=E2=9C=85=20Code=20review=20and=20te?= =?UTF-8?q?sting=20complete?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/shared/Comment.tsx | 62 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 62 insertions(+) create mode 100644 src/shared/Comment.tsx diff --git a/src/shared/Comment.tsx b/src/shared/Comment.tsx new file mode 100644 index 0000000..8c8a223 --- /dev/null +++ b/src/shared/Comment.tsx @@ -0,0 +1,62 @@ +import React from "react"; +import { FC } from "react"; +import Avatar from "@/shared/Avatar"; + +export interface CommentProps { + isSmall?: boolean; +} + +const Comment: FC = ({ isSmall }) => { + return ( +
+
+ +
+
+
+ + Foulcher Nathanil + + ยท + + May 20, 2021 + +
+ + In sagittis dui vel nisl. Duis ac nibh. Fusce lacus purus, aliquet at, + feugiat non, pretium quis, lectus. Suspendisse potenti. In eleifend + quam a odio. In hac habitasse platea dictumst. + +
+ +
+
+
+ ); +}; + +export default Comment;