import { c as i } from "./reactSlick-cb4a2d39.mjs";
import e, { Component as c } from "react";
import { Link as p } from "react-router-dom";
import { A as r, e as o, T as s } from "./index-162fd1aa.mjs";
const g = "pagination _pagination_c8afb", f = {
  pagination: g
}, E = ({ link: n, children: t, className: a }) => /* @__PURE__ */ e.createElement(p, { className: i(a, "paginationLink"), to: n }, t), _ = ({
  callBack: n,
  children: t,
  className: a
}) => /* @__PURE__ */ e.createElement(
  "a",
  {
    href: "#",
    className: i(a, "paginationLink", "link", n ? "" : "disabled"),
    onClick: (m) => {
      m.preventDefault(), n && n();
    }
  },
  t
), l = ({
  linkOrCallback: n,
  children: t,
  className: a
}) => n === !1 ? null : /* @__PURE__ */ e.createElement(e.Fragment, null, typeof n == "string" && /* @__PURE__ */ e.createElement(E, { link: n, className: a }, t), typeof n != "string" && /* @__PURE__ */ e.createElement(_, { callBack: n, className: a }, t));
class k extends c {
  render() {
    return /* @__PURE__ */ e.createElement("div", { className: i(f.pagination, "pagination") }, /* @__PURE__ */ e.createElement(l, { linkOrCallback: this.props.prev, className: "link-prev" }, /* @__PURE__ */ e.createElement(r, { className: i(o.left, "arrowSize") }), /* @__PURE__ */ e.createElement(s, { i18nKey: "Pagination.prev" }, "Previous")), /* @__PURE__ */ e.createElement(l, { linkOrCallback: this.props.next, className: "link-next" }, /* @__PURE__ */ e.createElement(s, { i18nKey: "Pagination.next" }, "Next"), /* @__PURE__ */ e.createElement(r, { className: i(o.right, "arrowSize") })));
  }
}
export {
  k as P
};
