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。

512 B
Raw Blame
import { useTranslation } from 'react-i18next';
import { isBotGroupRuntimeFailureCode } from '../../../shared/botGroupChat';

export function BotGroupRuntimeFailureNotice({ name, code }: { name: string; code: unknown }) {
  const { t } = useTranslation();
  if (!isBotGroupRuntimeFailureCode(code)) return null;
  return <p className="mx-auto max-w-[560px] whitespace-pre-line text-center text-13 leading-5 text-[var(--text-primary)]">
    {t(`bots.groupChat.notice.runtimeFailure.${code}`, { name })}
  </p>;
}