import { LoaderCircle } from "lucide-react"; import { useTranslation } from "react-i18next"; import { ThreadMessages } from "@/components/thread/ThreadMessages"; import { Button } from "@/components/ui/button"; import type { UIMessage } from "@/lib/types"; export function SubagentThreadView({ messages, loading, failed, isStreaming, activeTurnId, runStartedAt, onRetry }: { messages: UIMessage[]; loading: boolean; failed: boolean; isStreaming: boolean; activeTurnId?: string | null; runStartedAt: number; onRetry: () => void; }) { const { t } = useTranslation(); return <> {failed ?
{t("thread.history.error")}
: loading ?

{t("chat.loading")}

: null} ; }