import { Divider, Flex } from 'antd'; import { useSelector } from 'react-redux'; import FunctionArea from './FunctionArea'; import TransferArea from './TransferArea'; import SendPanelForView from '../../output/SendPanelForView'; import MeasurementPanel from './MeasurementPanel'; import MorePanel from './MorePanel'; import AdvancedProcessingPanel from './AdvancedProcessingPanel'; import RectCropPanel from './RectCropPanel'; import MarkPanel from './MarkPanel'; import ImageStateControl from './ImageStateControl'; import { RootState } from '../../../states/store'; import SliderAdjustmentPanel from './SliderAdjustmentPanel'; const OperationPanel = () => { const currentPanel = useSelector( (state: RootState) => state.panelSwitchForView.currentPanel ); const renderPanel = () => { switch (currentPanel) { case 'OperationPanel': return ( ); case 'SendPanel': return ; case 'MeasurementPanel': return ; case 'MorePanel': return ; case 'AdvancedProcessingPanel': return ; case 'RectCropPanel': return ; case 'MarkPanel': return ; case 'SliderAdjustmentPanel': return default: return ( ); } }; return
{renderPanel()}
; }; export default OperationPanel;