Hooks
useCheckEntitlement
Check a single entitlement for a customer.| Name | Type | Description |
|---|---|---|
customerId | string | Customer ID |
featureKey | string | Feature key to check |
useHasFeature
Boolean shorthand — returnstrue or false.
useEntitlements
List all entitlements for a customer.useIsApproachingLimit
Returnstrue when usage is within a threshold of the limit (default: 80%).
| Name | Type | Default | Description |
|---|---|---|---|
customerId | string | — | Customer ID |
featureKey | string | — | Feature key |
threshold | number | 80 | Percentage threshold |