MCPcopy Create free account
hub / github.com/wavetermdev/waveterm / WebPreview

Function WebPreview

frontend/preview/previews/web.preview.tsx:11–27  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

9const PreviewNodeId = "preview-web-node";
10
11export function WebPreview() {
12 const nodeModel = React.useMemo(
13 () => makeMockNodeModel({ nodeId: PreviewNodeId, blockId: WebBlockId, innerRect: { width: "1040px", height: "620px" } }),
14 []
15 );
16
17 return (
18 <div className="flex w-full max-w-[1100px] flex-col gap-2 px-6 py-6">
19 <div className="text-xs text-muted font-mono">full web block using preview mock fallback</div>
20 <div className="rounded-md border border-border bg-panel p-4">
21 <div className="h-[680px]">
22 <Block preview={false} nodeModel={nodeModel} />
23 </div>
24 </div>
25 </div>
26 );
27}

Callers

nothing calls this directly

Calls 1

makeMockNodeModelFunction · 0.90

Tested by

no test coverage detected