"use strict";Object.defineProperty(exports, "__esModule", {value: true});// tmp-babel/navigations/web/__shared__/useActiveLink.js
var _navigation = require('next/navigation');
function useActiveLink(path) {
  var deep = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : true;
  var pathname = _navigation.usePathname.call(void 0, ) || "";
  if (!path) {
    return false;
  }
  var normalActive = pathname === path;
  var deepActive = pathname.includes(path);
  return deep ? deepActive : normalActive;
}



exports.useActiveLink = useActiveLink;
//# sourceMappingURL=chunk-64WVWW2B.js.map