Skip to content

armgit / umami

Public Imported from GitHub
0

Umami is a privacy-first web and product analytics platform. Traffic, campaigns, behavior, conversions, and revenue in one place. No cookies, no surveillance, self-hosted or in the cloud.

283 B
Raw Blame
import { useBreakpoint } from '@umami/react-zen';

export function useMobile() {
  const breakpoint = useBreakpoint();
  const isMobile = ['base', 'sm', 'md'].includes(breakpoint);
  const isPhone = ['base', 'sm'].includes(breakpoint);

  return { breakpoint, isMobile, isPhone };
}