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 ScrollToBottomButton to use detailed button props for improved flexibility and type safety
Salman-Ahamed7772d3dbf563
diff --git a/packages/app/src/react/features/ai-chat/components/scroll-to-bottom-button.tsx b/packages/app/src/react/features/ai-chat/components/scroll-to-bottom-button.tsxindex 5f22674d..217dee7b 100644--- a/packages/app/src/react/features/ai-chat/components/scroll-to-bottom-button.tsx+++ b/packages/app/src/react/features/ai-chat/components/scroll-to-bottom-button.tsx@@ -1,11 +1,9 @@-import { FC } from 'react';+import { ButtonHTMLAttributes, DetailedHTMLProps, FC } from 'react';import { FaArrowDown } from 'react-icons/fa6';-interface ScrollToBottomButtonProps {- onClick: () => void;-}+type IButtonProps = DetailedHTMLProps<ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>;-export const ScrollToBottomButton: FC<ScrollToBottomButtonProps> = ({ onClick }) => (+export const ScrollToBottomButton: FC<IButtonProps> = ({ onClick }) => (<div className="w-full max-w-4xl flex justify-center items-center absolute -top-2.5 z-10"><buttonclassName="bg-white border border-solid border-black border-opacity-10 text-gray-900 rounded-full p-2 shadow-lg hover:bg-gray-50 transition-colors duration-200"