import * as React from 'react'; import classNames from 'classnames'; import type { TableLocale } from './interface'; interface DefaultExpandIconProps { prefixCls: string; onExpand: (record: RecordType, e: React.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 (