import type { FC } from 'react' import { memo } from 'react' import { useTranslation } from 'react-i18next' import type { ChatItem } from '../../types' import { formatNumber } from '@/utils/format' type MoreProps = { more: ChatItem['more'] } const More: FC = ({ more, }) => { const { t } = useTranslation() return (
{ more && ( <>
{`${t('appLog.detail.timeConsuming')} ${more.latency}${t('appLog.detail.second')}`}
{`${t('appLog.detail.tokenCost')} ${formatNumber(more.tokens)}`}
ยท
{more.time}
) }
) } export default memo(More)