Skip to content

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.

feat: add SendButton2 component for enhanced chat functionality

Salman-Ahamed03f120321a8c
diff --git a/packages/app/src/react/features/ai-chat/components/footer/send-button.tsx b/packages/app/src/react/features/ai-chat/components/footer/send-button.tsx
index a3cee6cf..2ca4a4d5 100644
--- a/packages/app/src/react/features/ai-chat/components/footer/send-button.tsx
+++ b/packages/app/src/react/features/ai-chat/components/footer/send-button.tsx
@@ -24,3 +24,17 @@ export const SendButton: FC<IProps> = ({ isStreaming, disabled, onClick }) => (
Icon={isStreaming ? <FaStop fontSize={14} /> : <SendIcon className="text-white" />}
/>
);
+
+export const SendButton2: FC<IProps> = ({ isStreaming, disabled, onClick }) => (
+ <Button
+ addIcon
+ variant="primary"
+ disabled={disabled}
+ handleClick={onClick}
+ className={cn(
+ 'size-8 rounded-lg px-0 py-0 disabled:cursor-not-allowed active:scale-95 relative z-10',
+ isStreaming ? 'chat-stop' : 'chat-send',
+ )}
+ Icon={isStreaming ? <FaStop fontSize={14} /> : <SendIcon className="text-white" />}
+ />
+);