import{createVNode as u,createTextVNode as D}from"vue";import{DECADE_DISTANCE_COUNT as e}from"./index.mjs";import{useInjectPanel as N}from"../../PanelContext.mjs";import x from"../../hooks/useMergeProps.mjs";import C from"../Header.mjs";function o(a){const r=x(a),{prefixCls:n,generateConfig:s,viewDate:d,onPrevDecades:i,onNextDecades:c}=r,{hideHeader:f}=N();if(f)return null;const p=`${n}-header`,m=s.getYear(d),t=Math.floor(m/e)*e,l=t+e-1;return u(C,{...r,prefixCls:p,onSuperPrev:i,onSuperNext:c},{default:()=>[t,D("-"),l]})}o.displayName="DecadeHeader";o.inheritAttrs=!1;export{o as default};
