@schema-render/search-table-react
Version:
Conditional search table component.
15 lines (14 loc) • 518 B
TypeScript
import type { IGlobalStateRef } from '../../typings';
import type { IColumnType, ITableProps } from '../../typings/table.d';
interface IParams {
baseColumns: IColumnType<any>[];
table: ITableProps;
globalStateRef: IGlobalStateRef;
}
export default function useSortColumns({ baseColumns, table, globalStateRef }: IParams): {
sortColumns: IColumnType<any>[];
sortModalHolder: import("react/jsx-runtime").JSX.Element;
openSettingModal: () => void;
closeSettingModal: () => void;
};
export {};