import { apiRequest } from './client'

export function scanAnalytics(days = 7) {
  return apiRequest(`/analytics/scans?days=${days}`)
}

export function deviceAnalytics() {
  return apiRequest('/analytics/devices')
}

export function geoAnalytics(days = 30) {
  return apiRequest(`/analytics/geo?days=${days}`)
}
