import type { FC } from 'react' import { useState } from 'react' 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 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 */} {bottomPanelWidth < 488 && showLeftPanel &&
setShowLeftPanel(false)}>
}
{/* right */}
setShowLeftPanel(true)} />
) } export default Panel