forked from
jollywhoppers.com/witchsky.app
Bluesky app fork with some witchin' additions 馃挮
1import * as aaDebug from '#/ageAssurance/debug'
2import {IS_DEV} from '#/env'
3import {type Geolocation} from '#/geolocation/types'
4
5const localEnabled = false
6export const enabled = IS_DEV && (localEnabled || aaDebug.geolocation)
7export const geolocation: Geolocation = aaDebug.geolocation ?? {
8 countryCode: 'US',
9 regionCode: 'TX',
10}
11
12const deviceLocalEnabled = false
13export const deviceGeolocation: Geolocation | undefined =
14 aaDebug.deviceGeolocation ||
15 (deviceLocalEnabled
16 ? {
17 countryCode: 'US',
18 regionCode: 'TX',
19 }
20 : undefined)
21
22export async function resolve<T>(data: T) {
23 await new Promise(y => setTimeout(y, 500)) // simulate network
24 return data
25}