From d8735398562833cabee879b432a92dd601704c61 Mon Sep 17 00:00:00 2001 From: ManishMadan2882 Date: Fri, 9 May 2025 20:02:49 +0530 Subject: [PATCH] (fix:message-input) no badge buttons when shared --- frontend/src/components/MessageInput.tsx | 49 +++++++++---------- .../src/conversation/SharedConversation.tsx | 1 + 2 files changed, 24 insertions(+), 26 deletions(-) diff --git a/frontend/src/components/MessageInput.tsx b/frontend/src/components/MessageInput.tsx index 60cd4b81..7f617673 100644 --- a/frontend/src/components/MessageInput.tsx +++ b/frontend/src/components/MessageInput.tsx @@ -34,8 +34,7 @@ type MessageInputProps = { onChange: (e: React.ChangeEvent) => void; onSubmit: () => void; loading: boolean; - showSourceButton?: boolean; - showToolButton?: boolean; + isShared?: boolean; autoFocus?: boolean; }; @@ -44,8 +43,7 @@ export default function MessageInput({ onChange, onSubmit, loading, - showSourceButton = true, - showToolButton = true, + isShared = false, autoFocus = true, }: MessageInputProps) { const { t } = useTranslation(); @@ -345,8 +343,8 @@ export default function MessageInput({
-
- {showSourceButton && ( + {!isShared && ( +
- )} - {showToolButton && ( - )} - - {/* Additional badges can be added here in the future */} -
+ + + {/* Additional badges can be added here in the future */} +
+ )}