import { BsX } from "react-icons/bs"; import { ErrorWithLabel } from "../rqbit-web"; const AlertDanger: React.FC<{ title: string; children: React.ReactNode; onClose?: () => void; }> = ({ title, children, onClose }) => { return (

{title}

{onClose && ( )}
{children}
); }; export const ErrorComponent = (props: { error: ErrorWithLabel | null; remove?: () => void; }) => { let { error, remove } = props; if (error == null) { return null; } return ( {error.details?.statusText && (
{error.details?.statusText}
)}
{error.details?.text}
); };