import React, { useState } from 'react';
import styles from './style/index.module.less';
import SideBar from './sideBar';
import LogBar from './logBar';
import RightSideBar from './rightSideBar';
interface Selected {
currentPath?: string;
currentKey?: string;
}
// 假设您有这些组件
const AppFlowComponent = () =>
应用编排
;
const CompListComponent = () => 组件列表
;
const AppInstanceComponent = () => 应用实例
;
const EventComponent = () => 事件
;
const GlobalVarComponent = () => 全局变量
;
function IDEContainer() {
const [selected, setSelected] = useState({});
// 根据选中的菜单项渲染对应组件
const renderContent = () => {
switch (selected.currentPath) {
case 'appFlow':
return ;
case 'compList':
return ;
case 'appInstance':
return ;
case 'event':
return ;
case 'globalVar':
return ;
default:
return ;
}
};
return (
<>
setSelected(select)}
selectedKey={selected.currentKey}
/>
>
);
}
export default IDEContainer;