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