( kind: Exclude<RightPanelKind, "file" | "preview" | "terminal">, )
| 83 | }; |
| 84 | |
| 85 | const singletonSurface = ( |
| 86 | kind: Exclude<RightPanelKind, "file" | "preview" | "terminal">, |
| 87 | ): RightPanelSurface => { |
| 88 | switch (kind) { |
| 89 | case "diff": |
| 90 | return { id: "diff", kind }; |
| 91 | case "files": |
| 92 | return { id: "files", kind }; |
| 93 | case "plan": |
| 94 | return { id: "plan", kind }; |
| 95 | } |
| 96 | }; |
| 97 | |
| 98 | const browserSurface = (tabId: string | null): RightPanelSurface => |
| 99 | tabId |