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