import { jsx as l } from "react/jsx-runtime";
import d from "../button/Button.js";
import i from "../../utils/classNames.js";
import { useOptionalTableRenderContext as m } from "./context/TableRenderContext.js";
const u = (t) => {
  const { expanded: n = !1, disabled: a = !1, onClick: o, className: r, ...s } = t, e = m();
  return e && (e.renderDraft.hasExpandableRows = !0), /* @__PURE__ */ l(
    d,
    {
      ...s,
      bsStyle: "muted",
      bsSize: "xs",
      iconOnly: !0,
      disabled: a,
      iconName: "rioglyph-chevron-down",
      className: i("table-expander-button", n && "table-expander-button-expanded", r),
      onClick: o
    }
  );
};
export {
  u as default
};
//# sourceMappingURL=TableExpanderButton.js.map
