( status: string | null | undefined, billingBlocked: boolean | null | undefined )
| 42 | * Returns true when a subscription is usable for product access. |
| 43 | */ |
| 44 | export function hasUsableSubscriptionAccess( |
| 45 | status: string | null | undefined, |
| 46 | billingBlocked: boolean | null | undefined |
| 47 | ): boolean { |
| 48 | return hasUsableSubscriptionStatus(status) && !billingBlocked |
| 49 | } |
| 50 | |
| 51 | /** |
| 52 | * Get the free tier limit from env or fallback to default |
no test coverage detected