// import { useState } from 'react' import { useTranslation } from 'react-i18next' import { RiArrowRightSLine, RiErrorWarningFill, RiLoader2Line, } from '@remixicon/react' import { useStore } from '../store' import { BlockEnum } from '../types' import Button from '@/app/components/base/button' // import ActionButton from '@/app/components/base/action-button' // import Tooltip from '@/app/components/base/tooltip' import BlockIcon from '@/app/components/workflow/block-icon' import { BubbleX } from '@/app/components/base/icons/src/vender/line/others' import { Variable02 } from '@/app/components/base/icons/src/vender/solid/development' import Group from './group' import useCurrentVars from '../hooks/use-inspect-vars-crud' import type { currentVarType } from './panel' import cn from '@/utils/classnames' type Props = { currentNodeVar?: currentVarType handleVarSelect: (state: any) => void } const Left = ({ currentNodeVar, handleVarSelect, }: Props) => { const { t } = useTranslation() const environmentVariables = useStore(s => s.environmentVariables) const { conversationVars, systemVars, nodesWithInspectVars, deleteAllInspectorVars, } = useCurrentVars() // TODO node selection const selectedNode = 3 < 4 return (
{/* header */}
{t('workflow.debug.variableInspect.title')}
{/* content */}
{/* group ENV */} {environmentVariables.length > 0 && ( )} {/* group CHAT VAR */}
{/* node item */}
{t('workflow.chatVariable.panelTitle')}
{/* var item list */}
chat_history
array
{selectedNode && }
custom_chat_history
array
{/* divider */}
{/* group nodes */}
{/* node item */}
LLM
{/* var item list */}
chat_history
array
{selectedNode && }
custom_chat_history
array
{/* group nodes */}
{/* node item */}
Question Classifier
{/* group nodes */}
{/* node item */}
HTTP Request
) } export default Left