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