diff --git a/frontend/src/conversation/ConversationBubble.tsx b/frontend/src/conversation/ConversationBubble.tsx
index 8638718f..7bc042cf 100644
--- a/frontend/src/conversation/ConversationBubble.tsx
+++ b/frontend/src/conversation/ConversationBubble.tsx
@@ -56,6 +56,7 @@ const ConversationBubble = forwardRef<
updated?: boolean,
index?: number,
) => void;
+ attachments?: { fileName: string; id: string }[];
}
>(function ConversationBubble(
{
@@ -69,6 +70,7 @@ const ConversationBubble = forwardRef<
retryBtn,
questionNumber,
handleUpdatedQuestionSubmission,
+ attachments,
},
ref,
) {
@@ -95,6 +97,36 @@ const ConversationBubble = forwardRef<
handleUpdatedQuestionSubmission?.(editInputBox, true, questionNumber);
};
let bubble;
+ const renderAttachments = () => {
+ if (!attachments || attachments.length === 0) return null;
+
+ return (
+
+ {attachments.map((attachment, index) => (
+
+
+
{attachment.fileName}
+
+ ))}
+
+ );
+ };
if (type === 'QUESTION') {
bubble = (
{!isEditClicked && (
<>
-
- {message}
+
+
+ {message}
+
+ {renderAttachments()}