MCPcopy Index your code
hub / github.com/simstudioai/sim / buildUpgradeHref

Function buildUpgradeHref

apps/sim/lib/billing/upgrade-reasons.ts:85–88  ·  view source on GitHub ↗
(workspaceId: string, reason?: UpgradeReason)

Source from the content-addressed store, hash-verified

83 * that sent the user there so the page can swap its header.
84 */
85export function buildUpgradeHref(workspaceId: string, reason?: UpgradeReason): string {
86 const base = `/workspace/${workspaceId}/upgrade`
87 return reason ? `${base}?${UPGRADE_REASON_PARAM}=${reason}` : base
88}

Callers 10

useLimitUpgradeToastFunction · 0.90
CreditsChipInnerFunction · 0.90
TeammatesFunction · 0.90
BillingFunction · 0.90
DeployUpgradeGateFunction · 0.90
useCreateTableRowFunction · 0.90
useBatchCreateTableRowsFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected