import e from"../_util/classNames.mjs";import{createVNode as t}from"vue";function n(n){return function({prefixCls:r,onExpand:i,record:a,expanded:o,expandable:s}){let c=`${r}-row-expand-icon`;return t(`button`,{type:`button`,onClick:e=>{i(a,e),e.stopPropagation()},class:e(c,{[`${c}-spaced`]:!s,[`${c}-expanded`]:s&&o,[`${c}-collapsed`]:s&&!o}),"aria-label":o?n.collapse:n.expand,"aria-expanded":o},null)}}export{n as default};