import * as t from "react";
import y from "../PanelContext.mjs";
var o = {
  visibility: "hidden"
};
function E(e) {
  var n = e.prefixCls, c = e.prevIcon, b = c === void 0 ? "‹" : c, r = e.nextIcon, I = r === void 0 ? "›" : r, a = e.superPrevIcon, m = a === void 0 ? "«" : a, s = e.superNextIcon, N = s === void 0 ? "»" : s, i = e.onSuperPrev, l = e.onSuperNext, u = e.onPrev, p = e.onNext, P = e.children, x = t.useContext(y), v = x.hideNextBtn, d = x.hidePrevBtn;
  return /* @__PURE__ */ t.createElement("div", {
    className: n
  }, i && /* @__PURE__ */ t.createElement("button", {
    type: "button",
    onClick: i,
    tabIndex: -1,
    className: "".concat(n, "-super-prev-btn"),
    style: d ? o : {}
  }, m), u && /* @__PURE__ */ t.createElement("button", {
    type: "button",
    onClick: u,
    tabIndex: -1,
    className: "".concat(n, "-prev-btn"),
    style: d ? o : {}
  }, b), /* @__PURE__ */ t.createElement("div", {
    className: "".concat(n, "-view")
  }, P), p && /* @__PURE__ */ t.createElement("button", {
    type: "button",
    onClick: p,
    tabIndex: -1,
    className: "".concat(n, "-next-btn"),
    style: v ? o : {}
  }, I), l && /* @__PURE__ */ t.createElement("button", {
    type: "button",
    onClick: l,
    tabIndex: -1,
    className: "".concat(n, "-super-next-btn"),
    style: v ? o : {}
  }, N));
}
export {
  E as default
};
