import { memo } from 'react' import cn from '@/utils/classnames' import { VarBlockIcon } from '@/app/components/workflow/block-icon' import { Line3 } from '@/app/components/base/icons/src/public/common' import { Variable02 } from '@/app/components/base/icons/src/vender/solid/development' import { BubbleX, Env } from '@/app/components/base/icons/src/vender/line/others' import type { Node } from '@/app/components/workflow/types' import { BlockEnum } from '@/app/components/workflow/types' type NodeVariableItemProps = { isEnv: boolean isChatVar: boolean node: Node varName: string showBorder?: boolean className?: string } const NodeVariableItem = ({ isEnv, isChatVar, node, varName, showBorder, className, }: NodeVariableItemProps) => { return (
{!isEnv && !isChatVar && (
{node?.data.title}
)}
{!isEnv && !isChatVar && } {isEnv && } {isChatVar && }
{varName}
) } export default memo(NodeVariableItem)