Feat: Update add-on cards (#4382)

This commit is contained in:
Mike
2025-04-11 13:28:12 +02:00
committed by GitHub
parent 5358db9815
commit 080482febd
6 changed files with 171 additions and 53 deletions
@@ -146,6 +146,31 @@ export const isSelfServeAvailablePlan = (plan: WorkspacePlans): boolean => {
}
}
export const isPaidPlan = (plan: WorkspacePlans): boolean => {
switch (plan) {
case 'team':
case 'teamUnlimited':
case 'pro':
case 'proUnlimited':
return true
case 'free':
case 'starter':
case 'plus':
case 'business':
case 'starterInvoiced':
case 'plusInvoiced':
case 'businessInvoiced':
case 'teamUnlimitedInvoiced':
case 'proUnlimitedInvoiced':
case 'unlimited':
case 'academia':
return false
default:
throwUncoveredError(plan)
}
}
/**
* BILLING INTERVALS
*/