import l from "../../../../@babel/runtime/helpers/esm/extends.mjs";
import * as t from "react";
import u from "../Header.mjs";
import { DECADE_DISTANCE_COUNT as r } from "./constant.mjs";
import D from "../../PanelContext.mjs";
function P(e) {
  var n = e.prefixCls, o = e.generateConfig, i = e.viewDate, d = e.onPrevDecades, f = e.onNextDecades, m = t.useContext(D), x = m.hideHeader;
  if (x)
    return null;
  var C = "".concat(n, "-header"), c = o.getYear(i), a = Math.floor(c / r) * r, v = a + r - 1;
  return /* @__PURE__ */ t.createElement(u, l({}, e, {
    prefixCls: C,
    onSuperPrev: d,
    onSuperNext: f
  }), a, "-", v);
}
export {
  P as default
};
