// 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, Env } from '@/app/components/base/icons/src/vender/line/others' import { Variable02 } from '@/app/components/base/icons/src/vender/solid/development' import useCurrentVars from '../hooks/use-current-vars' import cn from '@/utils/classnames' type Props = { handleMenuClick: (state: any) => void } const Left = ({ handleMenuClick }: Props) => { const { t } = useTranslation() // const bottomPanelWidth = useStore(s => s.bottomPanelWidth) // const setShowVariableInspectPanel = useStore(s => s.setShowVariableInspectPanel) const { clearCurrentVars, } = useCurrentVars() // TODO node selection const selectedNode = 3 < 4 return (
{/* header */}
{t('workflow.debug.variableInspect.title')}
{/* content */}
{/* group ENV */}
{/* node item */}
{t('workflow.env.envPanelTitle')}
{/* var item list */}
SECRET_KEY
string
{selectedNode && }
PORT
number
{/* 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