{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "extends": "none",
  "name": "use-mobile",
  "title": "use-mobile",
  "description": "use-mobile",
  "files": [
    {
      "path": "src/hooks/use-mobile.ts",
      "content": "import { useEffect, useState } from 'react'\n\nconst MOBILE_BREAKPOINT = 768\nexport function useIsMobile() {\n  const [isMobile, setIsMobile] = useState<boolean | undefined>(undefined)\n\n  useEffect(() => {\n    const mql = window.matchMedia(`(max-width: ${MOBILE_BREAKPOINT - 1}px)`)\n    const onChange = () => {\n      setIsMobile(window.innerWidth < MOBILE_BREAKPOINT)\n    }\n    mql.addEventListener('change', onChange)\n    setIsMobile(window.innerWidth < MOBILE_BREAKPOINT)\n    return () => mql.removeEventListener('change', onChange)\n  }, [])\n\n  return !!isMobile\n}\n",
      "type": "registry:hook"
    }
  ],
  "type": "registry:hook"
}