(view: string)
| 49 | } |
| 50 | |
| 51 | export 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 | |
| 79 | export function processTitleString(titleString: string): React.ReactNode[] { |
| 80 | if (titleString == null) { |
no outgoing calls
no test coverage detected