()
| 62 | * based on their subscription existence and status. |
| 63 | */ |
| 64 | export function useHasProAccess() { |
| 65 | const { customer } = useContext(AppContext); |
| 66 | const status = customer?.subscription?.status; |
| 67 | return status && ["trialing", "active"].includes(status); |
| 68 | } |
| 69 | |
| 70 | /** |
| 71 | * Use this to determine if they were a pro user. |
no outgoing calls
no test coverage detected