Files
gsfdc/demo-dify/dify/web/app/components/integrations/modal.tsx
T
wuzilongandCursor 6519682885 chore: 纳入本地 Dify 1.19.0 源码及品牌与免登改动
演示目录只保留可重建的源码。运行密钥、数据卷、依赖和带口令的本地配置不进入仓库。

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-11-18 13:59:25 +08:00

34 lines
1.0 KiB
TypeScript

'use client'
import type { IntegrationSection } from './routes'
import { useTranslation } from 'react-i18next'
import MenuDialog from '@/app/components/header/account-setting/menu-dialog'
import IntegrationsPage from './index'
type IntegrationsSettingModalProps = {
section: IntegrationSection
onCancel: () => void
onSectionChange: (section: IntegrationSection) => void
}
export default function IntegrationsSettingModal({
section,
onCancel,
onSectionChange,
}: IntegrationsSettingModalProps) {
const { t } = useTranslation(['navigation'])
return (
<MenuDialog
title={t(($) => $['settings.integrations'], { ns: 'navigation' })}
onClose={onCancel}
>
<div className="mx-auto flex h-dvh w-[min(1440px,calc(100vw-48px))] shrink-0 py-6">
<div className="relative flex min-h-0 w-full shrink-0 overflow-hidden rounded-2xl border border-divider-subtle bg-components-panel-bg shadow-2xl">
<IntegrationsPage section={section} onSectionChange={onSectionChange} />
</div>
</div>
</MenuDialog>
)
}