blob: c9bd42e0f44f853d8a0e4d4af0e707699419b993 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
import DebugPanel from "./components/DebugPanel";
import GUI from "./pages/gui";
import { createContext } from "react";
import useContinueGUIProtocol from "./hooks/useWebsocket";
import ContinueGUIClientProtocol from "./hooks/useContinueGUIProtocol";
export const GUIClientContext = createContext<
ContinueGUIClientProtocol | undefined
>(undefined);
function App() {
const client = useContinueGUIProtocol();
return (
<GUIClientContext.Provider value={client}>
<DebugPanel
tabs={[
{ element: <GUI />, title: "GUI" }
]}
/>
</GUIClientContext.Provider>
);
}
export default App;
|