const isDesktopDevice = () => {
  // Modern browsers (Chromium)
  if (navigator.userAgentData?.mobile) {
    return false;
  }

  // Capability-based fallback
  const hasFinePointer = window.matchMedia("(pointer: fine)").matches;
  const canHover = window.matchMedia("(hover: hover)").matches;

  return hasFinePointer && canHover;
};
export default isDesktopDevice;
