'use client' import type { IntegrationSection } from '@/app/components/integrations/routes' import { Button } from '@langgenius/dify-ui/button' import { useCallback } from 'react' import { useTranslation } from 'react-i18next' import MenuDialog from '@/app/components/header/account-setting/menu-dialog' import IntegrationsPage from '@/app/components/integrations/page' import { getMarketplaceUrl } from '@/utils/var' type IntegrationsSettingModalProps = { section: IntegrationSection onCancel: () => void onSectionChange: (section: IntegrationSection) => void } export default function IntegrationsSettingModal({ section, onCancel, onSectionChange, }: IntegrationsSettingModalProps) { const { t } = useTranslation() const handleSwitchToMarketplace = useCallback((path: string) => { window.open(getMarketplaceUrl(path), '_blank', 'noopener,noreferrer') }, []) return (
ESC
) }