UNPKG

@redocly/theme

Version:

Shared UI components lib

12 lines (11 loc) 721 B
import React from 'react'; import { SortOption } from '../../../core/types'; import { BaseEntity, CatalogColumn } from '../../../components/Catalog/CatalogTableView/CatalogTableView'; export type CatalogTableHeaderCellProps<T extends BaseEntity> = { column: CatalogColumn<T>; setSortOption: (sortOption: SortOption | null) => void; currentSortOption?: SortOption | null; handleSortClick: (sortKey: string, direction: 'asc' | 'desc') => void; isColumnSorted: (sortKey: string, direction: 'asc' | 'desc') => boolean; }; export declare const CatalogTableHeaderCell: <T extends BaseEntity>({ column, handleSortClick, isColumnSorted, setSortOption, }: CatalogTableHeaderCellProps<T>) => React.JSX.Element;