import { jsx as d } from "react/jsx-runtime";
import { useMemo as f } from "react";
import { B as g } from "../button/button.js";
import { c as y, s as u, a as w } from "../tools/tools.js";
const x = function(r) {
  const { as: n = "button", className: o, dropOldClass: s, onRef: a, style: t, variables: e, ...l } = r, m = f(() => {
    const p = y(!s && "dropdown-toggle", o), c = u((D, i) => ({ tKey: w(i) }), e, t);
    return {
      className: p,
      style: c
    };
  }, [o, s, t, e]);
  return /* @__PURE__ */ d(g, { as: n, ...l, ...m, onRef: a });
};
x.displayName = "BRL.DropdownToggle";
export {
  x as D
};
//# sourceMappingURL=dropdown-toggle.js.map
