Files
gsfdc/demo-dify/dify/web/app/components/datasets/external-knowledge-base/create/InfoPanel.tsx
T
wuzilongandCursor c2cb845a32 feat(dify): 把本地控制台的中文与去外链改动入库
这些界面改动和专家服务草稿停在工作区,没有随上一笔主分支提交进入仓库。

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-11-23 09:44:09 +08:00

28 lines
1.2 KiB
TypeScript

import { RiBookOpenLine } from '@remixicon/react'
import { useTranslation } from 'react-i18next'
const InfoPanel = () => {
const { t } = useTranslation(['dataset'])
return (
<div className="flex w-90 flex-col items-start pt-27 pr-8 pb-2">
<div className="flex w-full min-w-60 flex-col items-start gap-3 self-stretch rounded-xl bg-background-section p-6">
<div className="flex h-10 w-10 grow items-center justify-center gap-2 self-stretch rounded-lg border-[0.5px] border-components-card-border bg-components-card-bg p-1">
<RiBookOpenLine className="size-5 text-text-accent" />
</div>
<p className="flex flex-col items-start gap-2 self-stretch">
<span className="self-stretch system-xl-semibold text-text-secondary">
{t(($) => $['connectDatasetIntro.title'], { ns: 'dataset' })}
</span>
<span className="system-sm-regular text-text-tertiary">
{t(($) => $['connectDatasetIntro.content.front'], { ns: 'dataset' })}
{t(($) => $['connectDatasetIntro.content.end'], { ns: 'dataset' })}
</span>
</p>
</div>
</div>
)
}
export default InfoPanel