演示目录只保留可重建的源码。运行密钥、数据卷、依赖和带口令的本地配置不进入仓库。 Co-authored-by: Cursor <cursoragent@cursor.com>
34 lines
1.0 KiB
TypeScript
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>
|
|
)
|
|
}
|