import classNames from '../_util/classNames'; import type { TableLocale } from './interface'; interface DefaultExpandIconProps { prefixCls: string; onExpand: (record: RecordType, e: MouseEvent) => void; record: RecordType; expanded: boolean; expandable: boolean; } function renderExpandIcon(locale: TableLocale) { return function expandIcon({ prefixCls, onExpand, record, expanded, expandable, }: DefaultExpandIconProps) { const iconPrefix = `${prefixCls}-row-expand-icon`; return (