| | |
| | | import VarReferencePicker from '@/app/components/workflow/nodes/_base/components/variable/var-reference-picker' |
| | | import type { ValueSelector, Var } from '@/app/components/workflow/types' |
| | | import { VarType as VarKindType } from '@/app/components/workflow/nodes/tool/types' |
| | | import { noop } from 'lodash-es' |
| | | |
| | | type Props = { |
| | | readonly: boolean |
| | |
| | | nodeId, |
| | | list, |
| | | onChange, |
| | | onOpen = noop, |
| | | onOpen = () => { }, |
| | | filterVar, |
| | | }) => { |
| | | const { t } = useTranslation() |
| | |
| | | /> |
| | | {!readonly && ( |
| | | <RemoveButton |
| | | className='!p-2 !bg-gray-100 hover:!bg-gray-200' |
| | | onClick={handleVarRemove(index)} |
| | | /> |
| | | )} |