import { jsx as r } from "react/jsx-runtime";
import { PrintDefaultTool as n } from "../../../icons/PrintDefaultIcon.js";
import { UIButton as p } from "../../../ui/Button.js";
import { c as m } from "../../../../ToolbarLayout.module-cbc8e216.js";
import { useLocalizationContext as f } from "../../../../contexts/LocalizationContext.js";
import T from "../../../ui/RPTooltip.js";
const u = ({ children: o, className: i, localeMessages: t }) => /* @__PURE__ */ r(T, { className: i, content: t == null ? void 0 : t.printTooltip, children: o }), h = ({ icon: o }) => {
  const { print: i } = m(), { localeMessages: t } = f();
  return /* @__PURE__ */ r(u, { localeMessages: t, children: /* @__PURE__ */ r(p, { onClick: i, "aria-label": t == null ? void 0 : t.printTooltip, children: o || /* @__PURE__ */ r(n, {}) }) });
};
export {
  h as PrintTool
};
