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

Function DebuggerSwitcher

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

Source from the content-addressed store, hash-verified

19};
20
21export const DebuggerSwitcher = () => {
22 const page = useSelector((state) => state.dbg.page);
23
24 switch (page) {
25 case "error":
26 return <Text />;
27 case "chart":
28 return <Chart />;
29 default:
30 return <Empty />;
31 }
32};

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected