Skip to content

armgit / cindy

Public Imported from GitHub
0

Consider it done. The open-source AI agent that works out of the box · 想到,就能做到。开源、开箱即用的 AI Agent。

794 B
Raw Blame
import { useTranslation } from 'react-i18next';
import { WORKING_PHASE_KEYS, type WorkingPhase } from '../../../shared/workingStatus';
import { WorkingStatusText } from '@/features/cc-agent/WorkingStatusText';
import { useWorkingStatusCopy } from './useWorkingStatusCopy';

/** Lists consume exactly the same public phase and host copy cache as the composer. */
export function BotGenerationLabel({ sessionId, phase = 'processing', startedAt = null, remote }: {
  sessionId?: string; phase?: WorkingPhase; startedAt?: number | null;
  remote?: { deviceId: string; botId: string };
}) {
  const { t } = useTranslation();
  const copy = useWorkingStatusCopy(sessionId, startedAt, phase, true, remote);
  return <WorkingStatusText key={startedAt} text={copy || t(WORKING_PHASE_KEYS[phase])} />;
}