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.

875 B
Raw Blame
import { CloseIcon } from '@react/features/ai-chat/components';
import { FC } from 'react';
import { FaCircleExclamation } from 'react-icons/fa6';

interface IProps {
  message: string;
  onClose: () => void;
}

export const ErrorToast: FC<IProps> = ({ message, onClose }) => (
  <div className="bg-[#FEFBED] border border-solid border-[#FAEBA8] flex items-center justify-between w-full min-h-[42px] rounded-md p-3">
    <div className="flex items-center gap-1.5">
      <div className="flex-shrink-0">
        <FaCircleExclamation style={{ color: '#88451D' }} />
      </div>
      <span className="text-[#88451D] text-xs font-normal">{message}</span>
    </div>
    <button
      onClick={onClose}
      className="flex items-center border-none outline-none bg-transparent cursor-pointer ml-3"
    >
      <CloseIcon className="text-[#88451D]" />
    </button>
  </div>
);