import * as o from "react";
function k(e) {
  var n = e.prefixCls, l = e.components, m = l === void 0 ? {} : l, c = e.needConfirmButton, s = e.onNow, r = e.onOk, d = e.okDisabled, u = e.showNow, i = e.locale, t, a;
  if (c) {
    var N = m.button || "button";
    s && u !== !1 && (t = /* @__PURE__ */ o.createElement("li", {
      className: "".concat(n, "-now")
    }, /* @__PURE__ */ o.createElement("a", {
      className: "".concat(n, "-now-btn"),
      onClick: s
    }, i.now))), a = c && /* @__PURE__ */ o.createElement("li", {
      className: "".concat(n, "-ok")
    }, /* @__PURE__ */ o.createElement(N, {
      disabled: d,
      onClick: r
    }, i.ok));
  }
  return !t && !a ? null : /* @__PURE__ */ o.createElement("ul", {
    className: "".concat(n, "-ranges")
  }, t, a);
}
export {
  k as default
};
