MCPcopy Create free account
hub / github.com/MegEngine/MegFlow / MainSwitcher

Function MainSwitcher

flow-debugger/debugger-ui/src/page/index.js:9–19  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

7import { Chart } from "./chart/Chart";
8
9export const MainSwitcher = () => {
10 const page = useSelector((state) => state.main.page);
11 switch (page) {
12 case "topology":
13 return <Topology />;
14 case "editor":
15 return <Editor />;
16 default:
17 return <Editor />;
18 }
19};
20
21export const DebuggerSwitcher = () => {
22 const page = useSelector((state) => state.dbg.page);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected