import type { FC } from 'react' import type { EndNodeType } from './types' import type { NodePanelProps } from '@/app/components/workflow/types' import * as React from 'react' import { useTranslation } from 'react-i18next' import Field from '@/app/components/workflow/nodes/_base/components/field' import VarList from '@/app/components/workflow/nodes/_base/components/variable/var-list' import useConfig from './use-config' const i18nPrefix = 'nodes.end' const Panel: FC> = ({ id, data }) => { const { t } = useTranslation() const { readOnly, inputs, handleVarListChange, handleAddVariable } = useConfig(id, data) const outputs = inputs.outputs return (
$[`${i18nPrefix}.output.variable`], { ns: 'workflow' })} required operations={ !readOnly ? ( ) : undefined } >
) } export default React.memo(Panel)