import * as r from "react";
import u from "../Header.mjs";
import C from "../../PanelContext.mjs";
import { formatValue as c } from "../../utils/dateUtil.mjs";
function v(e) {
  var t = r.useContext(C), o = t.hideHeader;
  if (o)
    return null;
  var f = e.prefixCls, l = e.generateConfig, n = e.locale, a = e.value, i = e.format, m = "".concat(f, "-header");
  return /* @__PURE__ */ r.createElement(u, {
    prefixCls: m
  }, a ? c(a, {
    locale: n,
    format: i,
    generateConfig: l
  }) : " ");
}
export {
  v as default
};
