UNPKG

antd

Version:

An enterprise-class UI design language and React components implementation

7 lines (6 loc) • 574 B
import type { TableProps } from '@rc-component/table'; import type { AnyObject, GetProp } from '../_util/type'; import type { TableLocale } from './interface'; type ExpandIconComponent<RecordType extends AnyObject = AnyObject> = GetProp<TableProps<RecordType>, 'components'>['ExpandIcon']; export default function useExpandIcon<RecordType extends AnyObject = AnyObject>(locale: TableLocale, ExpandIcon: ExpandIconComponent<RecordType> | undefined, ...legacyRenderExpandIcon: (TableProps<RecordType>['expandIcon'] | undefined)[]): ExpandIconComponent<RecordType>; export {};