MCPcopy
hub / github.com/simstudioai/sim / isPro

Function isPro

apps/sim/lib/billing/plan-helpers.ts:23–26  ·  view source on GitHub ↗
(plan: string | null | undefined)

Source from the content-addressed store, hash-verified

21export type PlanCategory = 'free' | 'pro' | 'team' | 'enterprise'
22
23export function isPro(plan: string | null | undefined): boolean {
24 if (!plan) return false
25 return plan === 'pro' || plan.startsWith('pro_')
26}
27
28export function isMax(plan: string | null | undefined): boolean {
29 return isPro(plan) && getPlanTierCredits(plan) >= 25000

Callers 15

canUpgradeFunction · 0.90
getUserUsageDataFunction · 0.90
canPurchaseCreditsFunction · 0.90
getEffectiveSeatsFunction · 0.90
checkProPlanFunction · 0.90
getPerUserMinimumLimitFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected