import Editor from "@monaco-editor/react"; import { useTheme } from "@marzneshin/features/theme-switch"; import { useNodesSettings } from "./use-nodes-settings"; import { Button, Awaiting } from "@marzneshin/components"; import { useTranslation } from "react-i18next"; import type { NodeType } from "../.."; export const NodeConfigEditor = ({ entity, backend, }: { entity: NodeType; backend: string }) => { const { t } = useTranslation(); const { theme } = useTheme(); const { payloadValidity, language, config, isFetching, handleConfigSave, handleConfigChange, handleEditorValidation, } = useNodesSettings(entity, backend); return ( <> } /> ); };