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。

697 B
Raw Blame
import { useTranslation } from 'react-i18next';
import type { CindyMakeTestState } from '../../../shared/cindyMakeSession';

/** Task and Settings display the same persisted startup step and failure location. */
export function CindyMakeTestStep({ test }: { test?: CindyMakeTestState }) {
  const { t } = useTranslation();
  const starting = test?.status === 'starting';
  if (!starting && !(test?.step && test.error)) return null;
  return (
    <p role="status" className="mt-2 text-12 text-[var(--text-secondary)]">
      {t(starting ? 'cindyMake.test.currentStep' : 'cindyMake.test.failedStep', {
        step: t('cindyMake.test.steps.' + (test?.step ?? 'waiting')),
      })}
    </p>
  );
}