(_license: License | null)
| 144 | } |
| 145 | |
| 146 | export const isAnonymousAccessAvailable = (_license: License | null): boolean => { |
| 147 | const offlineKey = getValidOfflineLicense(); |
| 148 | if (offlineKey) { |
| 149 | return offlineKey.anonymousAccess === true; |
| 150 | } |
| 151 | |
| 152 | const onlineLicense = getValidOnlineLicense(_license); |
| 153 | if (onlineLicense) { |
| 154 | return false; |
| 155 | } |
| 156 | return true; |
| 157 | } |
| 158 | |
| 159 | export const getEntitlements = (_license: License | null): Entitlement[] => { |
| 160 | const offlineLicense = getValidOfflineLicense(); |
no test coverage detected