import Link from 'next/link' import { CheckCircleIcon, ExclamationCircleIcon } from '@heroicons/react/24/solid' import { useTranslation } from 'react-i18next' import { useContext } from 'use-context-selector' import I18n from '@/context/i18n' export const ValidatedErrorIcon = () => { return } export const ValidatedSuccessIcon = () => { return } export const ValidatingTip = () => { const { t } = useTranslation() return (
{t('common.provider.validating')}
) } export const ValidatedExceedOnOpenaiTip = () => { const { t } = useTranslation() const { locale } = useContext(I18n) return (
{t('common.provider.apiKeyExceedBill')}  {locale === 'en' ? 'this link' : '这篇文档'}
) } export const ValidatedErrorOnOpenaiTip = ({ errorMessage }: { errorMessage: string }) => { const { t } = useTranslation() return (
{t('common.provider.validatedError')}{errorMessage}
) } export const ValidatedErrorOnAzureOpenaiTip = ({ errorMessage }: { errorMessage: string }) => { const { t } = useTranslation() return (
{t('common.provider.validatedError')}{errorMessage}
) }