import type { ReactNode } from "react"; import { useTranslation } from "react-i18next"; import type { SectionBaseProps } from "./context"; export interface NodeSyncSectionProps extends SectionBaseProps { scopeBanner: ReactNode; } export function NodeSyncSection({ scopeBanner, form, setForm }: NodeSyncSectionProps) { const { t } = useTranslation("app"); return (<> {scopeBanner}

{t("settings.nodeSync.nodeSync", "Node Sync")}

{t("settings.nodeSync.automaticallySynchronizeSettingsBetweenThisNodeAndConnected", "Automatically synchronize settings between this node and connected remote nodes")}
{form.settingsSyncEnabled && (<>
{t("settings.nodeSync.includeAPIKeysAndOAuthTokensInSync", "Include API keys and OAuth tokens in sync operations")}
)} {/* KTD-8: workflow settings are not yet part of the cross-node sync channel. Non-dismissible, informational only, no action affordance. */}

{t("settings.nodeSync.workflowSettingsNotSynced", "Workflow settings are not synced across nodes yet.")}

); } export default NodeSyncSection;