From 357ced6cba04bf989b6cefcd260a9aac24e97a37 Mon Sep 17 00:00:00 2001 From: ManishMadan2882 Date: Mon, 12 May 2025 16:32:17 +0530 Subject: [PATCH] Revert "(fix:message-input) no badge buttons when shared" This reverts commit d8735398562833cabee879b432a92dd601704c61. --- frontend/src/components/MessageInput.tsx | 50 ++++++++++--------- .../src/conversation/SharedConversation.tsx | 3 +- 2 files changed, 28 insertions(+), 25 deletions(-) diff --git a/frontend/src/components/MessageInput.tsx b/frontend/src/components/MessageInput.tsx index e8291519..532cc599 100644 --- a/frontend/src/components/MessageInput.tsx +++ b/frontend/src/components/MessageInput.tsx @@ -34,7 +34,8 @@ type MessageInputProps = { onChange: (e: React.ChangeEvent) => void; onSubmit: () => void; loading: boolean; - isShared?: boolean; + showSourceButton?: boolean; + showToolButton?: boolean; autoFocus?: boolean; }; @@ -43,7 +44,8 @@ export default function MessageInput({ onChange, onSubmit, loading, - isShared = false, + showSourceButton = true, + showToolButton = true, autoFocus = true, }: MessageInputProps) { const { t } = useTranslation(); @@ -343,8 +345,8 @@ export default function MessageInput({
- {!isShared && ( -
+
+ {showSourceButton && ( + )} + {showToolButton && ( - - - - {/* Additional badges can be added here in the future */} -
- )} + )} + + {/* Additional badges can be added here in the future */} +