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