import { jsx as r, Fragment as e } from "react/jsx-runtime";
import { ChevronUpIcon as p } from "../../../icons/ChevronUpIcon.js";
import { UIButton as m } from "../../../ui/Button.js";
import { u as a } from "../../../../ToolbarLayout.module-cbc8e216.js";
import { useLocalizationContext as u } from "../../../../contexts/LocalizationContext.js";
import P from "../../../ui/RPTooltip.js";
const h = ({ icon: t }) => {
  const { focusedPage: i, prevPage: n } = a(), { localeMessages: o } = u();
  return /* @__PURE__ */ r(e, { children: /* @__PURE__ */ r(P, { content: o == null ? void 0 : o.previousPageTooltip, children: /* @__PURE__ */ r(
    m,
    {
      onClick: n,
      "aria-label": o == null ? void 0 : o.previousPageTooltip,
      "aria-disabled": i === 1,
      children: t || /* @__PURE__ */ r(p, {})
    }
  ) }) });
};
export {
  h as PreviousPageTool
};
