import type { FC } from 'react' import type { ToolNodeType } from './types' import { VarType } from './types' import { Variable02 } from '@/app/components/base/icons/src/vender/solid/development' import type { NodeProps } from '@/app/components/workflow/types' const Node: FC> = ({ data, }) => { const { tool_inputs } = data return (
{tool_inputs.map((input, index) => (
{input.variable}
{input.variable_type === VarType.selector ? (
{input.value_selector?.slice(0, -1)[0]}
) : input.value}
))}
) } export default Node