/** iPadOS can identify as a Mac, so screen width alone cannot identify tablets. */
export function isMobileAttendanceDevice(device: { userAgent: string; platform?: string; maxTouchPoints?: number }): boolean {
  return /Android|iPhone|iPad|iPod/i.test(device.userAgent)
    || (device.platform === "MacIntel" && (device.maxTouchPoints ?? 0) > 1);
}
