import { jsx as N } from "react/jsx-runtime";
import { useMemo as y } from "react";
import { c as f, s as k, a as x } from "../tools/tools.js";
const C = function(c) {
  const {
    active: e,
    "aria-current": t,
    "aria-disabled": r,
    as: a = "a",
    className: i,
    disabled: s,
    dropOldClass: n,
    style: o,
    type: l,
    variables: d,
    ...v
  } = c, b = y(() => {
    const u = f(
      !n && "nav-link",
      e && "active",
      s && a === "a" && "disabled",
      i
    ), m = k((B, p) => ({ tKey: x(p) }), d, o);
    return {
      "aria-current": t ?? (e ? "page" : void 0),
      "aria-disabled": r ?? (s ? "true" : void 0),
      className: u,
      disabled: s && a === "button" ? !0 : void 0,
      style: m,
      type: l ?? (a === "button" ? "button" : void 0)
    };
  }, [a, e, t, r, i, s, n, o, l, d]);
  return /* @__PURE__ */ N(a, { ...v, ...b });
};
C.displayName = "BRL.NavbarNavLink";
export {
  C as N
};
//# sourceMappingURL=navbar-nav-link.js.map
