const e=require("../../PanelContext.js"),t=require("../../hooks/useMergeProps.js"),n=require("../Header.js");let r=require("vue");function i(i){let a=t.default(i),{prefixCls:o,generateConfig:s,viewDate:c,onPrevDecade:l,onNextDecade:u,onDecadeClick:d}=a,{hideHeader:f}=e.useInjectPanel();if(f.value)return null;let p=`${o}-header`,m=s.getYear(c),h=Math.floor(m/10)*10,g=h+10-1;return(0,r.createVNode)(n.default,{...a,prefixCls:p,onSuperPrev:l,onSuperNext:u},{default:()=>[(0,r.createVNode)(`button`,{type:`button`,onClick:d,class:`${o}-decade-btn`},[h,(0,r.createTextVNode)(`-`),g])]})}i.displayName=`YearHeader`,i.inheritAttrs=!1,exports.default=i;