import type { I18nKeysWithPrefix } from '@/types/i18n' import { cn } from '@langgenius/dify-ui/cn' import { RiLock2Fill } from '@remixicon/react' import { useTranslation } from 'react-i18next' import Link from '@/next/link' type EncryptedKey = I18nKeysWithPrefix<'common', 'provider.encrypted.'> type Props = Readonly<{ className?: string frontTextKey?: EncryptedKey backTextKey?: EncryptedKey }> const DEFAULT_FRONT_KEY: EncryptedKey = 'provider.encrypted.front' const DEFAULT_BACK_KEY: EncryptedKey = 'provider.encrypted.back' export const EncryptedBottom = (props: Props) => { const { t } = useTranslation() const { frontTextKey = DEFAULT_FRONT_KEY, backTextKey = DEFAULT_BACK_KEY, className } = props return (
{t(($) => $[frontTextKey], { ns: 'common' })} PKCS1_OAEP {t(($) => $[backTextKey], { ns: 'common' })}
) }