INNER CODE UNIT · TypeScript

defaultProfileDelays

dietrichmax/colota · apps/mobile/src/constants/index.ts:113

export function defaultProfileDelays(conditionType: ProfileConditionType): {
  activationDelay: number
  deactivationDelay: number
} {
  return conditionType === "stationary"
    ? { activationDelay: 60, deactivationDelay: 0 }
    : { activationDelay: 0, deactivationDelay: 60 }
}

// Sync Interval
export const SYNC_INTERVAL_PRESETS: readonly number[] = [0, 60, 300, 900]

export const SYNC_INTERVAL_SUB_KEYS: Record<number, TranslationKey> = {
  0: "syncInterval.sub.0",
  60: "syncInterval.sub.60",
  300: "syncInterval.sub.300",
  900: "syncInterval.sub.900"
}

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…