UNPKG

@redocly/theme

Version:

Shared UI components lib

15 lines (14 loc) 715 B
import { BaseEntity, CatalogColumn } from '../../../components/Catalog/CatalogTableView/CatalogTableView'; type CatalogTableHeaderCellActionsProps<T extends BaseEntity> = { column: CatalogColumn<T>; currentSortOption?: string | null; handleSortClick: (sortKey: string, direction: 'asc' | 'desc') => void; isColumnSorted: (sortKey: string, direction: 'asc' | 'desc') => boolean; }; export declare function useCatalogTableHeaderCellActions<T extends BaseEntity>({ column, currentSortOption, handleSortClick, isColumnSorted, }: CatalogTableHeaderCellActionsProps<T>): { handleCellClick: () => void; sortKey: string | undefined; isUpActive: boolean; isDownActive: boolean; }; export {};