"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("react"),o=(t=768)=>{const[n,s]=i.useState(!1);return i.useEffect(()=>{if(typeof window=="undefined")return;const e=()=>s(window.innerWidth<=t&&window.matchMedia("(pointer: coarse)").matches);return e(),window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[t]),n};exports.useIsMobile=o;
