SmythOS Studio: Open-Source Visual AI Agent Builder and deployable runtime stack from SmythOS. Start with an intuitive drag-and-drop workspace, extend with custom code, and deploy your agents anywhere — local, cloud, or edge — with full governance and control.
JavaScript a2aagentic-aiai-agentsdevtoolsmcp-clientn8n-alternativeno-codeopen-sourceorchestrationsmythosvisual-builder
Refactor ChatBubble component to destructure props for improved readability
Salman-Ahamed598df1734e21
diff --git a/packages/app/src/react/features/ai-chat/components/chat-bubble.tsx b/packages/app/src/react/features/ai-chat/components/chat-bubble.tsxindex 1be225c4..6499da3e 100644--- a/packages/app/src/react/features/ai-chat/components/chat-bubble.tsx+++ b/packages/app/src/react/features/ai-chat/components/chat-bubble.tsx@@ -15,19 +15,21 @@ import '../styles/index.css';const DEFAULT_AVATAR_URL ='https://gravatar.com/avatar/ccd5b19e810febbfd3d4321e27b15f77?s=400&d=mp&r=x';-export const ChatBubble: FC<IChatMessage> = ({- me,- files,- avatar,- message,- type,- isReplying,- isRetrying,- onRetryClick,- isError = false,- hideMessageBubble,- thinkingMessage,-}) => {+export const ChatBubble: FC<IChatMessage> = (props) => {+ const {+ me,+ files,+ avatar,+ message,+ type,+ isReplying,+ isRetrying,+ onRetryClick,+ isError,+ hideMessageBubble,+ thinkingMessage,+ } = props;+if (me) {return (<UserMessageBubble message={message} files={files} hideMessageBubble={hideMessageBubble} />