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 (