import c from "../../@babel/runtime/helpers/esm/defineProperty.mjs";
import y from "../../classnames/index.mjs";
import i from "react";
var h = function(e) {
  var t, o = e.rootPrefixCls, a = e.page, s = e.active, m = e.className, d = e.showTitle, n = e.onClick, f = e.onKeyPress, v = e.itemRender, l = "".concat(o, "-item"), P = y(l, "".concat(l, "-").concat(a), (t = {}, c(t, "".concat(l, "-active"), s), c(t, "".concat(l, "-disabled"), !a), t), m), u = function() {
    n(a);
  }, g = function(N) {
    f(N, n, a);
  }, r = v(a, "page", /* @__PURE__ */ i.createElement("a", {
    rel: "nofollow"
  }, a));
  return r ? /* @__PURE__ */ i.createElement("li", {
    title: d ? String(a) : null,
    className: P,
    onClick: u,
    onKeyDown: g,
    tabIndex: 0
  }, r) : null;
};
process.env.NODE_ENV !== "production" && (h.displayName = "Pager");
export {
  h as default
};
