// tmp-babel/navigations/web/__shared__/useActiveLink.js
import { usePathname } from "next/navigation";
function useActiveLink(path) {
  var deep = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : true;
  var pathname = usePathname() || "";
  if (!path) {
    return false;
  }
  var normalActive = pathname === path;
  var deepActive = pathname.includes(path);
  return deep ? deepActive : normalActive;
}

export {
  useActiveLink
};
//# sourceMappingURL=chunk-AKASI2IH.mjs.map