@redocly/theme
Version:
Shared UI components lib
25 lines (24 loc) • 1.38 kB
TypeScript
import { JSX } from 'react';
import type { CatalogEntityConfig, EntitiesCatalogConfig } from '@redocly/config';
import type { ListType } from '../../../../core/types';
import type { BffCatalogRelatedEntity, SortOption } from '../../../../core/types';
import { CatalogColumn } from '../../../../components/Catalog/CatalogTableView/CatalogTableView';
export type CatalogEntityRelationsTableContentProps = {
entitiesCatalogConfig: EntitiesCatalogConfig;
catalogConfig: CatalogEntityConfig;
relations: BffCatalogRelatedEntity[];
query: {
fetchNextPage: () => void;
isFetchingNextPage: boolean;
};
searchQuery: string;
columns: CatalogColumn<BffCatalogRelatedEntity>[];
sortOption: SortOption | null;
setSortOption: (sortOption: SortOption | null) => void;
handleSortClick: (sortKey: string, direction: 'asc' | 'desc') => void;
isColumnSorted: (sortKey: string, direction: 'asc' | 'desc') => boolean;
shouldShowLoadMore: boolean;
listType?: ListType;
onRowClick: (entity: BffCatalogRelatedEntity) => void;
};
export declare function CatalogEntityRelationsTableContent({ entitiesCatalogConfig, catalogConfig, relations, query, searchQuery, columns, setSortOption, sortOption, handleSortClick, isColumnSorted, shouldShowLoadMore, listType, onRowClick, }: CatalogEntityRelationsTableContentProps): JSX.Element;