@redocly/theme
Version:
Shared UI components lib
10 lines (9 loc) • 611 B
TypeScript
import React from 'react';
import { BaseEntity, CatalogColumn } from '../../../components/Catalog/CatalogTableView/CatalogTableView';
export type CatalogTableHeaderCellProps<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 const CatalogTableHeaderCell: <T extends BaseEntity>({ column, currentSortOption, handleSortClick, isColumnSorted, }: CatalogTableHeaderCellProps<T>) => React.JSX.Element;