MCPcopy Index your code
hub / github.com/wavetermdev/waveterm / blockViewToIcon

Function blockViewToIcon

frontend/app/block/blockutil.tsx:26–49  ·  view source on GitHub ↗
(view: string)

Source from the content-addressed store, hash-verified

24export const NumActiveConnColors = 8;
25
26export function blockViewToIcon(view: string): string {
27 if (view == "term") {
28 return "terminal";
29 }
30 if (view == "preview") {
31 return "file";
32 }
33 if (view == "web") {
34 return "globe";
35 }
36 if (view == "waveai") {
37 return "sparkles";
38 }
39 if (view == "help") {
40 return "circle-question";
41 }
42 if (view == "tips") {
43 return "lightbulb";
44 }
45 if (view == "processviewer") {
46 return "microchip";
47 }
48 return "square";
49}
50
51export function blockViewToName(view: string): string {
52 if (util.isBlank(view)) {

Callers 3

makeDefaultViewModelFunction · 0.90
BlockFrame_HeaderFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected