(countryAccess: FreeModeCountryAccess)
| 67 | } |
| 68 | |
| 69 | function toLimitedModeReason(countryAccess: FreeModeCountryAccess) { |
| 70 | if (countryAccess.allowed) return {} |
| 71 | return { |
| 72 | countryCode: countryAccess.countryCode, |
| 73 | countryBlockReason: countryAccess.blockReason, |
| 74 | ipPrivacySignals: countryAccess.ipPrivacy?.signals ?? null, |
| 75 | } |
| 76 | } |
| 77 | |
| 78 | function hardBlockedResponse(countryAccess: FreeModeCountryAccess) { |
| 79 | return NextResponse.json( |
no outgoing calls
no test coverage detected