import { useTranslate } from '@/hooks/commonHooks'; import { CloseOutlined } from '@ant-design/icons'; import { Button, Card, Form, Input, Select, Typography } from 'antd'; import { useUpdateNodeInternals } from 'reactflow'; import { Operator } from '../constant'; import { useBuildFormSelectOptions, useHandleFormSelectChange, } from '../form-hooks'; import { IGenerateParameter } from '../interface'; interface IProps { nodeId?: string; } const DynamicParameters = ({ nodeId }: IProps) => { const updateNodeInternals = useUpdateNodeInternals(); const form = Form.useFormInstance(); const buildCategorizeToOptions = useBuildFormSelectOptions( Operator.Categorize, nodeId, ); const { handleSelectChange } = useHandleFormSelectChange(nodeId); const { t } = useTranslate('flow'); return ( <>
{JSON.stringify(form.getFieldsValue(), null, 2)}