const PREFIX = 'xqm_last_service_app_'

export function saveLastServiceApp(service: string, appKey: string) {
  try {
    localStorage.setItem(`${PREFIX}${service}`, appKey)
  } catch {
    // ignore
  }
}

export function getLastServiceApp(service: string): string | null {
  try {
    return localStorage.getItem(`${PREFIX}${service}`)
  } catch {
    return null
  }
}
