MCPcopy
hub / github.com/pingdotgg/t3code / singletonSurface

Function singletonSurface

apps/web/src/rightPanelStore.ts:85–96  ·  view source on GitHub ↗
(
  kind: Exclude<RightPanelKind, "file" | "preview" | "terminal">,
)

Source from the content-addressed store, hash-verified

83};
84
85const 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
98const browserSurface = (tabId: string | null): RightPanelSurface =>
99 tabId

Callers 1

rightPanelStore.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected