MCPcopy
hub / github.com/wavetermdev/waveterm / PreviewRoot

Function PreviewRoot

frontend/preview/preview.tsx:96–108  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

94}
95
96function PreviewRoot() {
97 const waveEnvRef = useRef(makeMockWaveEnv());
98 return (
99 <Provider store={globalStore}>
100 <WaveEnvContext.Provider value={waveEnvRef.current}>
101 <TabModelContext.Provider value={getTabModelByTabId(PreviewTabId, waveEnvRef.current)}>
102 <PreviewApp />
103 <PreviewContextMenu />
104 </TabModelContext.Provider>
105 </WaveEnvContext.Provider>
106 </Provider>
107 );
108}
109
110function PreviewApp() {
111 const params = new URLSearchParams(window.location.search);

Callers

nothing calls this directly

Calls 2

makeMockWaveEnvFunction · 0.90
getTabModelByTabIdFunction · 0.90

Tested by

no test coverage detected