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.

784 B
Raw Blame
import { FC } from 'react';
import { FaStop } from 'react-icons/fa6';

import { SendIcon } from '@react/features/ai-chat/components';
import { Button } from '@react/shared/components/ui/newDesign/button';
import { cn } from '@react/shared/utils/general';

interface IProps {
  isStreaming: boolean;
  disabled: boolean;
  onClick: () => void;
}

export const SendButton: 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" />}
  />
);