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