Skip to content

armgit / macro

Public Imported from GitHub
0

Macro is a unified workspace for teams: email, chat, docs, tasks, agents, calls, and CRM — @-linked together with shared AI memory.

408 B
Raw Blame
import { isTouchDevice } from './isTouchDevice';
import { isMobileWidth } from './mobileWidth';

/**
 * Returns true if the device is likely in a mobile context.
 * This checks for both a narrow screen width AND a primarily touch-based device.
 * Use this for behavior that should differ on phones vs tablets/desktops.
 */
export function isMobile(): boolean {
  return isMobileWidth() && isTouchDevice();
}