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,onPrevDecade:u,onNextDecade:d,onDecadeClick:f}=o,{hideHeader:p}=e();if(p.value)return null;let m=`${s}-header`,h=c.getYear(l),g=Math.floor(h/10)*10,_=g+10-1;return i(n,{...o,prefixCls:m,onSuperPrev:u,onSuperNext:d},{default:()=>[i(`button`,{type:`button`,onClick:f,class:`${s}-decade-btn`},[g,r(`-`),_])]})}a.displayName=`YearHeader`,a.inheritAttrs=!1;export{a as default};