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