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

Function buildPlanName

apps/sim/lib/billing/plan-helpers.ts:112–114  ·  view source on GitHub ↗
(type: 'pro' | 'team', credits: number)

Source from the content-addressed store, hash-verified

110 * @example buildPlanName('pro', 6000) => 'pro_6000'
111 */
112export function buildPlanName(type: 'pro' | 'team', credits: number): string {
113 return `${type}_${credits}`
114}
115
116/**
117 * Get the list of valid plan names for a given category.

Callers 3

useSubscriptionUpgradeFunction · 0.90
mapToTeamPlanNameFunction · 0.90
getValidPlanNamesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected