import{createVNode as o}from"vue";import{useInjectPanel as c}from"../../PanelContext.mjs";import d from"../../hooks/useMergeProps.mjs";import{formatValue as h}from"../../utils/dateUtil.mjs";import x from"../Header.mjs";function a(n){const e=d(n),{prefixCls:r,generateConfig:i,locale:t,viewDate:l,onNextYear:s,onPrevYear:f,onYearClick:p}=e,{hideHeader:m}=c();if(m.value)return null;const u=`${r}-header`;return o(x,{...e,prefixCls:u,onSuperPrev:f,onSuperNext:s},{default:()=>[o("button",{type:"button",onClick:p,class:`${r}-year-btn`},[h(l,{locale:t,format:t.yearFormat,generateConfig:i})])]})}a.displayName="MonthHeader";a.inheritAttrs=!1;export{a as default};
