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