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),{hideHeader:s}=e();if(s.value)return null;let{prefixCls:c,generateConfig:l,locale:u,value:d,format:f}=o;return i(n,{prefixCls:`${c}-header`},{default:()=>[d?r(d,{locale:u,format:f,generateConfig:l}):`\xA0`]})}a.displayName=`TimeHeader`,a.inheritAttrs=!1;export{a as default};