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.

362 B
Raw Blame
import { createSignal } from 'solid-js';

const [isMobileWidth, setIsMobileWidth] = createSignal(
  typeof window !== 'undefined' && window.innerWidth < 640
);

if (typeof window !== 'undefined') {
  const handleResize = () => {
    setIsMobileWidth(window.innerWidth < 640);
  };

  window.addEventListener('resize', handleResize);
}

export { isMobileWidth };