import type { FC } from 'react' import { useState } from 'react' import { useTranslation } from 'react-i18next' import { RiCloseLine, } from '@remixicon/react' import { useStore } from '../store' import Empty from './empty' import Left from './left' import Right from './right' import ActionButton from '@/app/components/base/action-button' import cn from '@/utils/classnames' const Panel: FC = () => { const { t } = useTranslation() const bottomPanelWidth = useStore(s => s.bottomPanelWidth) const setShowVariableInspectPanel = useStore(s => s.setShowVariableInspectPanel) const [showLeftPanel, setShowLeftPanel] = useState(true) const isEmpty = false if (isEmpty) { return (
{t('workflow.debug.variableInspect.title')}
setShowVariableInspectPanel(false)}>
) } return (
{/* left */} {bottomPanelWidth < 488 && showLeftPanel &&
setShowLeftPanel(false)}>
}
{/* right */}
setShowLeftPanel(true)} />
) } export default Panel