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

Function blockViewToName

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

Source from the content-addressed store, hash-verified

49}
50
51export function blockViewToName(view: string): string {
52 if (util.isBlank(view)) {
53 return "(No View)";
54 }
55 if (view == "term") {
56 return "Terminal";
57 }
58 if (view == "preview") {
59 return "Preview";
60 }
61 if (view == "web") {
62 return "Web";
63 }
64 if (view == "waveai") {
65 return "WaveAI";
66 }
67 if (view == "help") {
68 return "Help";
69 }
70 if (view == "tips") {
71 return "Tips";
72 }
73 if (view == "processviewer") {
74 return "Processes";
75 }
76 return view;
77}
78
79export function processTitleString(titleString: string): React.ReactNode[] {
80 if (titleString == null) {

Callers 2

makeDefaultViewModelFunction · 0.90
BlockFrame_HeaderFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected