setSelectedComment(comment)}
- >
-
-
-
-
-
- Facebook
-
+ {comments.map((comment) => {
+ const platformInfo = getPlatformIcon(comment.platform);
+ return (
+ setSelectedComment(comment)}
+ >
+
+
+
+ {platformInfo.icon}
+
+ {platformInfo.name}
+
+
-
- |
-
-
- {comment.content}
-
- |
-
-
- |
-
- {comment.timestamp}
- |
-
- {comment.language === 'zh-TW' && (
-
- 繁中
-
- )}
- {comment.language === 'zh-CN' && (
-
- 简中
-
- )}
- {comment.language === 'en' && (
-
- EN
-
- )}
- |
-
- {comment.sentiment === 'positive' && (
-
-
- 正面
-
- )}
- {comment.sentiment === 'negative' && (
-
-
- 負面
-
- )}
- {comment.sentiment === 'neutral' && (
-
-
- 中性
-
- )}
- |
-
- {comment.replyStatus === 'sent' && (
-
-
- 已回覆
-
- )}
- {comment.replyStatus === 'draft' && (
-
-
- 草稿
-
- )}
- {comment.replyStatus === 'none' && (
-
-
- 未回覆
-
- )}
- |
-
-
- |
-
- ))}
+ |
+
+
+ {comment.content}
+
+ |
+
+
+ |
+
+ {comment.timestamp}
+ |
+
+ {comment.language === 'zh-TW' && (
+
+ 繁中
+
+ )}
+ {comment.language === 'zh-CN' && (
+
+ 简中
+
+ )}
+ {comment.language === 'en' && (
+
+ EN
+
+ )}
+ |
+
+ {comment.sentiment === 'positive' && (
+
+
+ 正面
+
+ )}
+ {comment.sentiment === 'negative' && (
+
+
+ 負面
+
+ )}
+ {comment.sentiment === 'neutral' && (
+
+
+ 中性
+
+ )}
+ |
+
+ {comment.replyStatus === 'sent' && (
+
+
+ 已回覆
+
+ )}
+ {comment.replyStatus === 'draft' && (
+
+
+ 草稿
+
+ )}
+ {comment.replyStatus === 'none' && (
+
+
+ 未回覆
+
+ )}
+ |
+
+
+ |
+
+ );
+ })}