| 1 | /** |
| 2 | * What the Marketplace's pages read besides the layout's: what the |
| 3 | * workspace has connected, and what this g1t can't connect, with why |
| 4 | * (lib/connected.server.ts). |
| 5 | */ |
| 6 | import type { User } from "@g1t/contracts"; |
| 7 | |
| 8 | import type { ConnectedState } from "./connectors"; |
| 9 | import { workspaceConnections } from "./connected.server"; |
| 10 | |
| 11 | export async function loadConnected(slug: string, viewer: User): Promise<{ connected: Record<string, ConnectedState>; unavailable: Record<string, string> }> { |
| 12 | return workspaceConnections(slug, viewer); |
| 13 | } |