MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / ownerLabelForHost

Function ownerLabelForHost

packages/react/src/api/owner-display.tsx:27–30  ·  view source on GitHub ↗
(owner: Owner, organizationId: string | null)

Source from the content-addressed store, hash-verified

25/** Local/desktop are single-player hosts. The real partition there is the
26 * cwd-derived local workspace, so do not expose Personal/Workspace language. */
27export function ownerLabelForHost(owner: Owner, organizationId: string | null): string {
28 if (organizationId === null) return owner === "org" ? "Local" : "Personal";
29 return ownerLabel(owner);
30}
31
32export function useOwnerDisplay(): {
33 readonly isSinglePlayerHost: boolean;

Callers 3

OAuthClientFormFunction · 0.90
connectionLabelForHostFunction · 0.90
useOwnerDisplayFunction · 0.85

Calls 1

ownerLabelFunction · 0.85

Tested by

no test coverage detected