import { forwardRef, memo } from "react"; import { Warning } from "@phosphor-icons/react"; import renderMarkdown from "@/utils/chat/markdown"; import { embedderSettings } from "@/main"; const PromptReply = forwardRef( ({ uuid, reply, pending, error, sources = [] }, ref) => { if (!reply && sources.length === 0 && !pending && !error) return null; if (pending) { return (