mirror of
https://github.com/langgenius/dify.git
synced 2025-12-08 08:53:35 +00:00
Signed-off-by: lyzno1 <yuanyouhuilyz@gmail.com> Co-authored-by: Stream <Stream_2@qq.com> Co-authored-by: lyzno1 <92089059+lyzno1@users.noreply.github.com> Co-authored-by: zhsama <torvalds@linux.do> Co-authored-by: Harry <xh001x@hotmail.com> Co-authored-by: lyzno1 <yuanyouhuilyz@gmail.com> Co-authored-by: yessenia <yessenia.contact@gmail.com> Co-authored-by: hjlarry <hjlarry@163.com> Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com> Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com> Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com> Co-authored-by: WTW0313 <twwu@dify.ai> Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
31 lines
1022 B
TypeScript
31 lines
1022 B
TypeScript
import cn from '@/utils/classnames'
|
|
import { RiLock2Fill } from '@remixicon/react'
|
|
import Link from 'next/link'
|
|
import { useTranslation } from 'react-i18next'
|
|
|
|
type Props = {
|
|
className?: string
|
|
frontTextKey?: string
|
|
backTextKey?: string
|
|
}
|
|
|
|
export const EncryptedBottom = (props: Props) => {
|
|
const { t } = useTranslation()
|
|
const { frontTextKey, backTextKey, className } = props
|
|
|
|
return (
|
|
<div className={cn('system-xs-regular flex items-center justify-center rounded-b-2xl border-t-[0.5px] border-divider-subtle bg-background-soft px-2 py-3 text-text-tertiary', className)}>
|
|
<RiLock2Fill className='mx-1 h-3 w-3 text-text-quaternary' />
|
|
{t(frontTextKey || 'common.provider.encrypted.front')}
|
|
<Link
|
|
className='mx-1 text-text-accent'
|
|
target='_blank' rel='noopener noreferrer'
|
|
href='https://pycryptodome.readthedocs.io/en/latest/src/cipher/oaep.html'
|
|
>
|
|
PKCS1_OAEP
|
|
</Link>
|
|
{t(backTextKey || 'common.provider.encrypted.back')}
|
|
</div>
|
|
)
|
|
}
|