import{defineComponent as l,shallowRef as s,watchEffect as i,createVNode as r}from"vue";import f from"../_util/classNames.mjs";import{collapsePanelProps as m}from"./commonProps.mjs";const v=l({compatConfig:{MODE:3},name:"PanelContent",props:m(),setup(t,{slots:a}){const n=s(!1);return i(()=>{(t.isActive||t.forceRender)&&(n.value=!0)}),()=>{if(!n.value)return null;const{prefixCls:e,isActive:o,role:c}=t;return r("div",{class:f(`${e}-content`,{[`${e}-content-active`]:o,[`${e}-content-inactive`]:!o}),role:c},[r("div",{class:`${e}-content-box`},[a.default?.()])])}}});export{v as default};
