MCPcopy Create free account
hub / github.com/sourcebot-dev/sourcebot / createInviteLink

Function createInviteLink

packages/web/src/lib/utils.ts:43–45  ·  view source on GitHub ↗
(baseUrl: string, inviteLinkId?: string | null)

Source from the content-addressed store, hash-verified

41 * @returns The complete invite link URL or null if no inviteLinkId
42 */
43export const createInviteLink = (baseUrl: string, inviteLinkId?: string | null): string | null => {
44 return inviteLinkId ? `${baseUrl}/invite?id=${inviteLinkId}` : null;
45}
46
47/**
48 * Adds a list of (potentially undefined) query parameters to a path.

Callers 2

page.tsxFile · 0.90
AccessSettingsStepFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected