tdesign-react
Version:
TDesign Component for React
12 lines (11 loc) • 387 B
TypeScript
import React from 'react';
import { SortInfo, TdPrimaryTableProps, PrimaryTableCol, TableRowData } from '../type';
export type SortMap = Record<string, SortInfo & {
index: number;
}>;
export default function useSorter(props: TdPrimaryTableProps): {
renderSortIcon: ({ col }: {
col: PrimaryTableCol<TableRowData>;
colIndex: number;
}) => React.JSX.Element;
};