import { jsx as t } from "react/jsx-runtime";
import { noop as i } from "es-toolkit/function";
import r from "../button/Button.js";
import { getTrackingLabelFromNode as n } from "../../utils/analytics/getTrackingLabelFromNode.js";
const d = ({ title: e, onClick: a = i }) => {
  const o = n(e);
  return /* @__PURE__ */ t(
    r,
    {
      bsStyle: r.MUTED,
      iconOnly: !0,
      onClick: a,
      autoTrackingKey: o && `sidebar::closed::${o}`,
      "data-testid": "sidebarCloseButton",
      children: /* @__PURE__ */ t("span", { className: "rioglyph rioglyph-remove" })
    }
  );
};
export {
  d as default
};
//# sourceMappingURL=SidebarCloseButton.js.map
