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.

881 B
Raw Blame
import { ErrorToast, Input, ScrollToBottomButton } from '@react/features/ai-chat/components';
import { useChatStores } from '@react/features/ai-chat/hooks';
import { FC } from 'react';

export const Footer: FC = () => {
  const { files, scroll } = useChatStores();
  const { errorMessage, clearError } = files;
  const { showScrollButton, scrollToBottom } = scroll || {};

  return (
    <div className="w-full max-w-4xl pt-2.5">
      {errorMessage && <ErrorToast message={errorMessage} onClose={clearError} />}
      <div className="relative">
        {showScrollButton && <ScrollToBottomButton onClick={() => scrollToBottom()} />}
        <Input />
      </div>

      <h6 className="py-4 text-center text-xs text-gray-500">
        SmythOS can make mistakes, always check your work. We don&apos;t store chat history, save
        important work.
      </h6>
    </div>
  );
};