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